monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sequential actions


From: Kizito Porta Balanyà
Subject: Sequential actions
Date: Fri, 13 Feb 2015 11:05:43 +0100

 Hello,

Is there any way to execute scripts sequentially, with an order, one
after the other? Something like a field "executionID":

check program ....
if status != 0 exec "scriptA.sh" executionID=1
if status != 0 exec "scriptB.sh" executionID=2 #Execute after scriptA
if status != 0 exec "scriptC.sh"executionID=3 #Execute after script B

I know that I can create a globalscript "scriptABC.sh",  but using an
ordered field would be helpful.
Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]