Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Call shell script in Perl

by Roger (Parson)
on May 26, 2005 at 08:56 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found