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.

link|improve this question
What server type/OS... Weekdays can be different on crons for different systems.. – Arenstar Nov 14 '10 at 18:42
feedback

migrated from stackoverflow.com Nov 14 '10 at 18:35

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

5 Answers

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

link|improve this answer
+1, Sunday can also be '7' on most systems. – Chris S Nov 14 '10 at 19:16
feedback

30 8 * * 1

See also 'man 5 crontab'

link|improve this answer
feedback
#minute hour    mday    month   wday
30      8       *       *       1      
link|improve this answer
feedback
30 8 * * 1 <command>
link|improve this answer
feedback

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.

link|improve this answer
I'm going with the "Teach a man to fish" analogy here, only teaching him to fish with Dynamite. – Tom O'Connor Nov 14 '10 at 19:02
feedback

Your Answer

 
or
required, but never shown