PDA

View Full Version : Another cron problem....


Jake Jeck
05-11-2001, 06:44 PM
Ok, I've looked through every single post in here that contains the word CRON...no help I've been trying everything I can find but still no help....


UCJ 1.3 (Free yeah I know....)

Details:
Step 1: upload cron.txt it contains:
00,02,04,06,08,10,12,14,16,18,20,22,24,26,28,30,32 ,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /home/spring/cgi-bin/ucjdata.cgi

Step 2: Telnet crontab -r
Step 3: Telnet crontab cron.txt
Step 4: Telnet crontab -l
# (cron.txt installed on Fri May 11 19:28:46 2001)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
00,02,04,06,08,10,12,14,16,18,20,22,24,26,28,30,32 ,34,36,38,40,42,44,46,48,50,52
,54,56,58 * * * * /home/spring/cgi-bin/ucjdata.cgi

Step 5: Telnet ps ax | grep crond
375 ? S 0:05 crond
9356 pts/0 S 0:00 grep crond

Step 6: ps ax | grep cron
375 ? S 0:05 crond
9592 pts/0 S 0:00 grep cron

Step 7: perl ucjdata.cgi
This produces no errors and updates the ucjadmin.cgi screen.

The only way my ucjadmin.cgi screen updates is when I manually type perl ucjdata.cgi which sucks because I can't log in and type that every 2 minutes. Anything I'm missing?

Much0S
05-11-2001, 06:48 PM
What host are you using?

the first line of ucjdata.cgi is something like
#!/usr/bin/perl

CHeck if that exists - if not, you can try /usr/local/bin/perl if it's not there either, ask your host.

Jake Jeck
05-11-2001, 06:48 PM
Oh yeah, this is the 2nd host I've tried getting it to work on with no luck....

David-C
05-11-2001, 06:48 PM
Look at this file:
/home/spring/cgi-bin/ucjdata.cgi

Verify that the first line looks something like this:
#!/usr/bin/perl

It MUST point to your perl executable. From the command line (telnet) type:
which perl
to find out where your perl is.

Otherwise, the simplest way is to edit your cron.txt file and explicitly put the path to perl in there like so:

00,02,04,06,08,10,12,14,16,18,20,22,24,26,28,30,32 ,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /usr/bin/perl /home/spring/cgi-bin/ucjdata.cgi

Jake Jeck
05-11-2001, 06:50 PM
#!/usr/bin/perl is in ucjdata.cgi

My host says path to perl - /usr/bin/perl or /usr/local/bin/perl - either will work

Jake Jeck
05-11-2001, 06:52 PM
which perl says
/usr/local/bin/perl

I'll put that in and see....

shane
05-12-2001, 04:46 AM
ya need to press enter after your line of text in cron.txt

Much0S
05-12-2001, 04:48 AM
If you want, I can try to fix it for you, just hit me up on icq.

Jake Jeck
05-12-2001, 09:07 PM
Shane you the man!!!! Thank you sooooooo much, it worked http://bbs.adultwebmasterinfo.com/ubb/smile.gif