These cron job settings will execute my script every 72 hours, correct?
* */72 * * *
Also, what does the suggested: > /dev/null do if l add it to the end of the command line? Thanks for your help, and your time.
~JSlime
This is a discussion on quick cron question... in the Shared & Semi-Dedicated forum
These cron job settings will execute my script every 72 hours, correct?
* */72 * * *
Also, what does the suggested: > /dev/null do ...
These cron job settings will execute my script every 72 hours, correct?
* */72 * * *
Also, what does the suggested: > /dev/null do if l add it to the end of the command line? Thanks for your help, and your time.
~JSlime
Last edited by JSlime; 03-27-2004 at 07:08 PM.
I'm not sure if */72 will work, as the hour field for cron is supposed to accept values between 0 and 23. Instead, I think you'd have to use 0 1 */3 * * *, which would run your script every third day at 1:00 AM.
>/dev/null casuses the system to discard any output that your script creates. Without it, anything that your script would normally write to the screen/browser would be, I belive, based on my experience with other systems, be sent to you in email.
--Jason
Fantastic, thanks Jason!!
So l've got:
0 1 */3 * * in there now, so l'm good to go, correct?
(yours had an extra astrix on the end, that was just a typo l assume)
~JSlime
Yes, that was a typo. You should be set.
--Jason
Copyright © 2011 JaguarPC.com
Bookmarks