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
#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
crontab -l
No comments:
Post a Comment