Monitor process duration
We have the below script, to check the process MEDT, if it doesn't run , then it will send a message immediately. the
same script, if I want to check if it is continously running for more than 1 hour, then it should do the action mentioned
EXIT=`ps -ef | grep -v grep | grep -c "MEDT E7 N MEDFT 40"`
if [ $EXIT = 0 ]
/opt/OV/bin/OpC/opcmsg application="CONNECT" object="MEDT E7 N MEDFT 40" service_id="CONNECT:MEDT E7 N MEDFT-40" severity=critical msg_text="Process MEDT E7 N MEDFT 40 is not running" msg_grp="INTECONNECT"