문제

I need to execute a cron job based on whether or not the cron job that ran before it was at least partially successful, I am trying to set up conditions for the run... sometimes these condition would be on the local or remote machine...

is there a way to do this?

도움이 되었습니까?

해결책

In that case you can share a common-file in which the first job will write its status and second cron job will read it an decide on that basis weather it should proceed or not.

In case of remote machine you may share that file on network.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top