I'm editing a crontab for a job that I want to run every minute but only between the hours of 10pm and 2am. Outside this time I'd like it to run every 10 minutes, I'm not sure if this is possible though.
Any help appreciated, thanks.
feedback
|
|
It's easiest to do in two lines.
This might be specific syntax for vixie cron, though. Check | |||
|
feedback
|
|
Yes, that is possible. Taken from crontab(5):
(Assuming Vixie Cron) | |||
|
feedback
|
|
It would probably be best to have it a 2 separate jobs, one for each hourly group
| |||
|
feedback
|