Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top