I need to run some command 5 times with 5 mins interval whenever one of the application on server hang.
When some application hangs without processing - how do you define the state of being 'hung' for an application ? is it not responding any queries or requests ?
You could use a while loop to achieve the same ( search the forum for while loop example )