i have a machine set in GMT. i would like to have a cron task scheduled from 6AM to 5PM in PST, which is GMT-8.
gmt time zone. typical.
00 06-17 * * *
now -8 produces a crontab bad hour error.
00 22-09 * * *
the following is accepted or should i say, no error.
00 22,23,0,1,2,3,4,5,6,7,8,9 * * *
any short form therefore?
For vixie cron,
Lists and ranges are allowed to co-exist in the same field. "1-3,7-9" would be rejected by AT&T or BSD cron -- they want to see "1-3" or "7,8,9" ONLY
That is, the following:
00 22-23,0-9 * * *