We don't bite newbies here... much | |
PerlMonks |
Re: Call shell script in Perlby Roger (Parson) |
on May 26, 2005 at 08:56 UTC ( [id://460580]=note: print w/replies, xml ) | Need Help?? |
I guess what your shell script does is probably along the lines of ps -ef | grep abcd? You could do this in Perl entirely, without calling external scripts. You can either call ps -ef, or you could use one of the CPAN modules, such as Proc::ProcessTable or Unix::Process, and do the filtering/counting of program instances yourself. This will give you precise control over what to and what not to select from the process table.
In Section
Seekers of Perl Wisdom
|
|