i want to monitor specific process id and if process id stop I got the mail.
please help me to write the script. postfix is already configured.
for example : PROCESS ID IS 1234
if PWDX /PID 1234 is running
then do nothing
else
echo "Process Not running sending alert mail"
mail -s "warning" <email> <message.txt