#Script to kill and restart a process on duration. Should be placed in a #cron job. #Digital Ebola #Written for use with HP-UX LLS=`ps -ef |grep process|grep -v grep|awk '{print $2}'` kill -9 $LLS date >> /home/user/kill.log echo "Process $LLS has been killed" >> /home/user/kill.log /path/to/process