Hello All,
I have a problem in executing the following - I have a monitor.sh that kicks off and then the config.sh which sends message to the monitor.sh. So If I recieve a Failed message, the monitor.sh will kill the config.sh process and outputs a message.
The problem is, I am not getting how to make monitor.sh run throughout in an infinite loop and keep checking config.sh and die after the deployment is done or failed. For the second part,I am killing monitor.sh after killing the config.sh and also adding another line to kill monitor.sh process at the end of config.sh
I am failing to loop monitor.sh to loop through on config.sh. Please help
You want to check continuously if the config.sh has sent "FAILED" message. If it does then you want to terminate the config.sh.
what i will suggest is set up a cron job which will check periodically and accordingly terminate the processes. This will help you to get rid of the infinite loop thing.