-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.

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
1

30 8 * * 1

See also 'man 5 crontab'

Chris
  • 287
1
#minute hour    mday    month   wday
30      8       *       *       1      
0
30 8 * * 1 <command>
rubayeet
  • 117
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,578
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