redcell184 has asked for the wisdom of the Perl Monks concerning the following question:
#!/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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating process restart script
by Fletch (Bishop) on Oct 31, 2007 at 12:57 UTC | |
|
Re: Creating process restart script
by toolic (Bishop) on Oct 31, 2007 at 13:04 UTC | |
by redcell184 (Initiate) on Oct 31, 2007 at 17:07 UTC | |
by toolic (Bishop) on Oct 31, 2007 at 17:35 UTC | |
by redcell184 (Initiate) on Nov 01, 2007 at 06:13 UTC | |
by toolic (Bishop) on Nov 01, 2007 at 13:57 UTC | |
|