jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

Understanding CRONTAB July 7, 2006 8:32 pm

Posted by Doug McCaughan in : Programming, Technology
, trackback

Time to write cron job to make sure a process fires every morning on a linux server. This sums it up quite well!

* * * * * command to be executed
– – – – –
| | | | |
| | | | —– day of week (0 – 6) (Sunday=0)
| | | ——- month (1 – 12)
| | ——— day of month (1 – 31)
| ———– hour (0 – 23)
————- min (0 – 59)

So I’m looking at:
0 1 * * * /usr/bin/wget -q -O- myfile.php
To run every morning at 1am.

Comments after advertisement

Comments»

no comments yet - be the first?


trackback