Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had a look though the cron man but didn't find anything that helped :(

Anyone know?

share|improve this question

migrated from Feb 15 '10 at 8:13

This question came from our site for professional and enthusiast programmers.

This is more suited for superuser, no? – Matt Olenik Feb 15 '10 at 8:11
up vote 8 down vote accepted

I'm giving an alternative answer here even though Trevor is correct.

The cron @weekly keyword does exactly as he mentioned. However, most distributions use run-parts to run their own scheduled crontab files (on an hourly, daily, weekly and monthly basis) which do not make use of cron's keywords.

e.g. Ubuntu has an /etc/cron.weekly which contains a separate file for each crnojob.

This is generally defined in /etc/crontab

Ubuntu's karmic 9.10 release has the following in /etc/crontab

17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

So the weekly crontab in Ubuntu is run at 6.47am on Sunday

Note: when looking for manpages for crontab implementations, you want to use man 5 crontab instead of just man crontab. The latter will only give you the syntax for the crontab command. The former gives you crontab implementation details.

share|improve this answer
A bit nit picky here, section 5 in man pages are for File Formats and Conventions, so not quite implementation. It specifies the file format and often has examples – Steve Buzonas Jan 28 '15 at 0:24

@weekly is the equivalent to: 0 0 * * 0

So it'll run at 00:00 on the Sunday.

share|improve this answer
Thanks (sorry for posting in the wrong site.) – Mint Feb 15 '10 at 8:49

Your Answer


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.