shell script to ssh and find process running
Posted on 2011-05-12
Wondering what is the easy and quick way to find if a script is running in several unix/solaris box by ssh and find if running or not. Then email using mailx
There are alteast 10 unix / solaris box 5.10
I want shh as some "user_id" and host name with password hard-coded to 10 different severs , so that there wont be any interaction to type password.
Then find like ps -eaf | grep " xyz" or some other command to show that script xyz is not running.
Then email using Mailx or any utility saying that the script not running along with results of the command...