Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Call shell script in Perl

by Roger (Parson)
on May 26, 2005 at 08:56 UTC ( #460580=note: print w/replies, xml ) Need Help??


in reply to Call shell script in Perl

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://460580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-12-09 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?