On Thursday, July 25, 2002, at 09:44 , Max Hugen wrote:
[..]
> I am trying to run this from Cron every 5 minutes, but being as unfamilair
> with Cron as with Perl, I having problems - the cron job does not seem to
> run. My entry in /etc/crontab is:
>     */5 * * * * root perl /home/sites/sa/cgi-bin/test.pl
>
> If anyone could suggest what I'm doing wrong, I'd most appreciate it!
[..]

I run a perl script from cron at just before midnight in the form:

        13 23 * * *  cd /net/gax/home/drieux/bin; ./phase3.txt

I have never seen this format

        */5

for every five minutes but have seen

        0,5,10,15,20,25,30,35,40,45,50,55 * * * * do_foo

I likewise have not seen this 'root perl' unless it is
that you mean to do some sort of

        su root -c perl /path/to/command

or more accuratly, should have put this into root's
crontab to begin with...

it is best to remember that cron will give you a
very limited environment - with maybe

        /usr/bin:/usr/sbin

rather than a full fancy environment...

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to