#!/usr/bin/perl $com1=`ps -eaf | grep bpps | grep -v grep | awk '{print $1}'`; $com2=`sh -c /export/home/weblogic/bai/bpps.sh start 2 > /dev/null 2>& +1` if ($com1 = 'weblogic') { print"bpps is running.\n"; } else { $com2 }
In reply to Creating process restart script by redcell184
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |