Posted on

Understanding CRONTAB

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.

Leave a Reply