문제

Currently I'm having two cronjobs as following,

0 */6 * * * root job1

0 */2 * * * root job2

I need to avoid running the job2 when job1 is running. Is there a way to exclude the time (00 00 , 06 00 , etc . . ) from the job2 cron.

Thanks.

도움이 되었습니까?

해결책

No, there's no exclusion syntax. Change job2 to:

0 2,4,8,10,14,16,20,22 * * * root job2
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top