Cron / Crontab
Here is the syntax:
string meaning ------ ------- @reboot Run once, at startup. @yearly Run once a year, "0 0 1 1 *" @annually (same as @yearly) @monthly Run once a month, "0 0 1 * *" @weekly Run once a week, "0 0 * * 0" @daily Run once a day, "0 0 * * *" @midnight (same as @daily) @hourly Run once an hour, "0 * * * *"
# Minute Hour Day of Month Month Day of Week Command # (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat)
Ex: 0 * * * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php every 1 hour.
Ex: 0 */2 * * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php every 2 hour.
Ex: */5 * * * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php every 5 minute.
Ex: 0 1 14 * * lynx -dump http://www.semenit.com/crontab.php
Meaning: execute http://www.semenit.com/crontab.php 1AM on the 14th every month.
This entry was posted on Thursday, February 6th, 2014 at 4:07 am and is filed under Hosting, PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.