The Greatest Linux Blog on the Internets. » read post

A visual guide to the crontab file

  • June 19th, 2008

I sometimes need to remind myself how to edit that crontab file … today I found a great little graphic on the Linuxconfig wiki that sums it up nicely:

The values in the crontab file

Sometimes, I also pipe the stdout and stderr somewhere (like “/usr/local/sbin/backup.sh >>/var/logs/backups.log 2>/var/logs/backups.err“) if I want to avoid getting emails with the output from cron … (although in the example above, which looks like a backup script, I’d probably rather be emailed with a warning that my backups were succeeding or failing).

Thanks Linuxconfig !

Update:

After some FriendFeed discussion, it was noted that the crontab above is a “system crontab”, not the typical “user crontab” you would edit by typing “crontab -e” at the command line. For the “user crontab”, you don’t specify the user (the blue field, “root” in the example above).


Related posts:

  • Edit remote files over SSH / SCP using GVim
  • Serve files via scp or sftp, without giving full shell access to users
  • Fixing the arrow keys in Vim
  • Trackback URL for this post: http://linuxblog.pansapiens.com/2008/06/19/a-visual-guide-to-the-crontab-file/trackback/

    Want your say?

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>