Posts Tagged ‘cron’
Linux: creating a cron entry
January 23, 2010
Leave a comment
Launches your default editor – most likely vi – and edits your crontab file which ends up in /var/spool/cron/username
crontab -e
I always add this as my first line as I can never remember which order they go in.
#min hour daymo month daywk cmd
And now a sample cron entry which will run awstats every day at 6:05am
05 06 * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.website.com
Use the following to list your crontab file
crontab -l