Tuesday, 23 June 2020

Script that will send mail. If SAP Application is stopped



$subject = "db_down"
If ( sapcontrol -nr 00 -function GetProcess List | grep -i 'yellow/ | grey') >stopped.tmp ;
 then
mail -s ,$subject mail-id <stopped.tmp
fi

No comments:

Post a Comment