logic4fun1
Programmer
I have a situation where i have to check for same process on two boxes
Goals :
1. Check on the other box and see if it is running or not.
2. if not running then start it on the local box. If running just Sleep .
I thought of using rsh/rcmd along with ps |elf but at a given time the process should be running only on one box. So i am worried if my ps fails and it starts off the application i would be in a problem.
Any logic how to implement this ??
thanks
Goals :
1. Check on the other box and see if it is running or not.
2. if not running then start it on the local box. If running just Sleep .
I thought of using rsh/rcmd along with ps |elf but at a given time the process should be running only on one box. So i am worried if my ps fails and it starts off the application i would be in a problem.
Any logic how to implement this ??
thanks