Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top