Page 1 of 1

Cron file help

Posted: Wed Dec 08, 2004 1:18 pm
by BDKR
It's been a while and just a little forgetful. 8O Anyway, here is what I want.

30 23 * * 1,3,5,6 /run/some/script.

What do you see happening here? I know what I want it to do, but just curious if I'm correct. It should be running the script at 2330 on Monday, Wednesday, Friday, and Saturday.

Cheers,
BDKR

Posted: Wed Dec 08, 2004 1:32 pm
by protokol
In a *nix console:

# man 5 crontab

Posted: Wed Dec 08, 2004 2:28 pm
by BDKR
Forgot about that one. I did a regular man crontab.

On the other hand, you could've just answered the question as it's obvious from what I wrote that I have an idea. :roll:

Thanx

Posted: Wed Dec 08, 2004 3:29 pm
by protokol
But that would be WAAAAAAAY to easy ;-)

Posted: Wed Dec 08, 2004 4:01 pm
by timvw
usually my crontab starts like this (saves some time looking it up

Code: Select all

#
# man 5 crontab
#
# *     *   *   *    *  command to be executed
# -     -    -    -    -
# |     |     |     |     |
# |     |     |     |     +----- day of week (1 - 7) (monday = 1)
# |     |     |     +------- month (1 - 12)
# |     |     +--------- day of month (1 - 31)
# |     +----------- hour (0 - 23)
# +------------- min (0 - 59)
#

Posted: Wed Dec 08, 2004 6:07 pm
by BDKR
timvw wrote:usually my crontab starts like this (saves some time looking it up

Code: Select all

#
# man 5 crontab
#
# *     *   *   *    *  command to be executed
# -     -    -    -    -
# |     |     |     |     |
# |     |     |     |     +----- day of week (1 - 7) (monday = 1)
# |     |     |     +------- month (1 - 12)
# |     |     +--------- day of month (1 - 31)
# |     +----------- hour (0 - 23)
# +------------- min (0 - 59)
#
What I want to say is "Brilliant!", but it still doesn't account for lists or ranges. That's what my specific question was relating too, eventhough I did a horrible job of getting that across.

But evenstill, it's an awesome idea!

Thanx to both of you.