in reply to Call shell script in Perl
I guess you are doing something like ps -ef | grep -c progname which will always find its own instance. You can either alter your script so it does a something like | grep -v grep before it counts or as it will find itself with 100% reliabilty you can just --$count to get the correct value.
Cheers,
R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Call shell script in Perl
by blazar (Canon) on May 26, 2005 at 08:08 UTC |