> Hi all,
> 
> Does anyone know what line I neet to print after using the
> 
> crontab -e
> 
> command, in order to run a program every half an hour, at 0 minutes and at
> 30 minutes?
> 

Your line will need to be of the form:

0,30 * * * * /path/to/command

That says run at 0 and 30 minutes of every hour, every # day, every
month, every day of week. You should use full paths to commands and if
your program uses STDERR to print to you may want to redirect it into
STDOUT. For STDOUT you will want to make sure the user the cron runs
under has mail delivery facilities so that errors/output actually go
someplace and don't clog the mail delivery facilities, etc. Also note
that cron will usually invoke the command with /bin/sh rather than
whatever the default shell of the user is, and may have a restricted or
lessened environment. So if you rely on ENV variables, etc. you will
need to specifically account for them.  Also note that on some systems
cron is smarter than others, for instance on Solaris 8 you can't have
blank lines in the crontab file, on RH9 you can, their are other
eccentricities, so just beware if you run into problems....

man crontab for more including other examples

Good luck,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to