Execute the following: man 5 crontab
This man page explains all of the shortcuts possible in a cron schedule. */5 * * * * root perl /home/sites/sa/cgi-bin/test.pl The above means that "test.pl" will be run every five minutes on the 0's and 5's - e.g. 12:00, 12:05, 12:10, 12:15, etc. You could also do the following: 3-58/5 * * * * root perl /home/sites/sa/cgi-bin/test.pl This would still execute every five minutes, but it would run on the 3's and 8's - e.g. 12:03, 12:08, 12:13, 12:18, etc. It's a pretty handy "trick" HTH, Ben -----Original Message----- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 7:31 AM To: begin begin Subject: Re: Cron and Perl Script 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] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]