Home > Cron, Linux > Linux: creating a cron entry

Linux: creating a cron entry

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

Categories: Cron, Linux Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: