-3

I want to shedule a task for 8.30am every Monday, for every month, for every year...

What would the UNIX Crontab format be?

Many thanks

O.

  • What server type/OS... Weekdays can be different on crons for different systems.. – Arenstar Nov 14 '10 at 18:42
  • How can this answer (2010) be a duplicate of a question that was asked after this one (2012)? This question is older – Katie Aug 10 '18 at 23:43

6 Answers6

6

You would put the crontab entry like this:

30 8 * * 1 COMMAND

The first field is minutes, the second is hours, and the fifth is days of the week (where Sunday is 0).

Avi
  • 163
  • 5
1

30 8 * * 1

See also 'man 5 crontab'

Chris
  • 297
  • 1
  • 3
1
#minute hour    mday    month   wday
30      8       *       *       1      
0
30 8 * * 1 <command>
rubayeet
  • 117
  • 7
0

When I was starting out with Linux/UNIX, I found something like this was quite useful.

I think this one is slightly easier to use.

Tom O'Connor
  • 27,440
  • 10
  • 72
  • 148
0

You might find http://www.opsschool.org/en/latest/cron_101.html useful too. That's where I found http://cronchecker.net/ to verify my cron commands in plain english.

Spncr2
  • 1