ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
open(PS_F, "ps - aux | grep perl |") || die "Can't open console\n"; while (<PS_F>) { ($pid,$tt,$stat,$time,$comm,$comm1,$comm2) = split; $comm .= ' '.$comm1.' '.$comm2; if($comm =~ m/Theservice.pl /i) { print "Service Already Running\n"; } } close(PS_F);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capture Console Results?
by Corion (Patriarch) on Feb 24, 2006 at 20:22 UTC | |
|
Re: Capture Console Results?
by chargrill (Parson) on Feb 24, 2006 at 21:25 UTC | |
by acid06 (Friar) on Feb 25, 2006 at 00:58 UTC | |
by chargrill (Parson) on Feb 25, 2006 at 06:51 UTC | |
by ecuguru (Monk) on Feb 26, 2006 at 05:36 UTC | |
by ecuguru (Monk) on Feb 26, 2006 at 05:35 UTC | |
by ecuguru (Monk) on Feb 26, 2006 at 05:58 UTC | |
by chargrill (Parson) on Feb 26, 2006 at 18:22 UTC | |
by ecuguru (Monk) on Mar 14, 2006 at 00:10 UTC | |
|
Re: Capture Console Results?
by Fletch (Bishop) on Feb 24, 2006 at 21:58 UTC |