Loading

Saturday, July 25, 2009

Linux Crontab Cheat Sheet

### Crontab Configuration: updates site every day at 0327 hours as root - shouldn't tax the server to run every day
### On several of my sites, I run this command every hour with little impact
### REFERENCE --> http://www.adminschoice.com/docs/crontab.htm
### REFERENCE --> http://www.crontabrocks.org/
crontab -e
27 3 * * * perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=pl-1.tbs.studiocom.com >/dev/null 2>&1


######################### CRONTAB syntax
* * * * * 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)

No comments:

Post a Comment