A place for SGML and XML application developers.

April 6, 2006

Way to remember format for crontab

Filed under: Linux — cangione @ 2:59 pm

The crontab file is used to schedule commands. To use it you must remember the format it expects. It is not how shall we say mnemonic. In trying to remember the format, I came across a good linuxjournal article that had an easy way to remember it.

Add a header comment that provides the proper sequence:

$ crontab -e
# ****************Roots crontab***********************

# minute (0-59),
#    hour (0-23),
#       day of the month (1-31),
#          month of the year (1-12),
#             day of the week (0-6, 0=Sunday),
#                command

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress