Eg : Usage can be change to any command (eg : shutdon, sending mails, backup ..)
#!/bin/bash
# author SanjeewaF.
# Script will reastrt the remote server if any matching processors found.
# Process 1 : [abc]
if [ ! $1 ] ; then
echo "Please specify the remote IP";
exit
fi
echo "Checking for xyz Processers ========================== ";
ssh root@$1 "if [ `ps -ef | egrep '(\[\babc\b]