Hi,
The requirement is to monitor an application which should be executing all the time, and if the application is down for any reason, it should be automatically started by the monitoring script.
For this, currently we have written a monitoring script which is added to a crontab and it is scheduled for execution every minute. This(monitoring script) should start the application if it is down. Currently it is not working as expected for some reason. We have a command in the script which uses 'nohup' to bring up the application, this command is working fine when issued thru the command prompt, but not working when it is used in the shell script.
I need help in finding out what the issue could be with the shell script and also if there is an alternate method to achieve the objective stated.
Thanks in advance.

