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
Moderator: General Moderators
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.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) #