Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What does this crontab entry do? I'm thinking it means run the jobs.sh script every Monday at 11AM. Is this correct?

0 11 * * MON /home/username/jobs.sh

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Yes, thats precisely what it does - the reference template here is really useful in this

# .---------------- minute (0 - 59)
# |   .------------- hour (0 - 23)
# |   |   .---------- day of month (1 - 31)
# |   |   |   .------- month (1 - 12) OR jan,feb,mar,apr ...
# |   |   |   |  .----- day of week (0 - 7) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat
# |   |   |   |  |
# 0   11  *   *  MON  command to be executed

For a more complete understanding, also look at the various special characters and the shorthand forms such as @reboot

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.