Perl equivalent for Unix ps.
Prab_kar_at_hotmail.com
Date: 01/31/05
- Next message: perl_beginner: "Perl help for Menue driver interface"
- Previous message: Anno Siegel: "Re: Perl loops should use break, not last"
- Next in thread: Jim Keenan: "Re: Perl equivalent for Unix ps."
- Reply: Jim Keenan: "Re: Perl equivalent for Unix ps."
- Reply: Gregory Toomey: "Re: Perl equivalent for Unix ps."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jan 2005 15:45:26 -0800
Hi all,
Is there any Perl function which works like the Unix ps command?
I've looked through the manuals for Perl functions and couldnt find
anything similar in nature.
I'm rewriting a Bourne shell script in Perl and the sh script uses the
ps from a lot of different places, /usr/bin/ps sometimes, /usr/ucb/ps
other times. I wanted to rewrite in Perl to get over that, and in all
the examples I see, the Perl scripts use /usr/bin/ps or /usr/ucb/ps in
backticks or from system("<PATH>/ps").
Is there anyway I can use Perl's internal functions to identify/monitor
the process and stop/kill them?
I realize there's Proc::ProcessTable .pm for this, but I want my
distribution to include just the Perl script and have it do it all.
I'm working on Solaris, Perl 5.6.
Thanks for your time,
Prabh
- Next message: perl_beginner: "Perl help for Menue driver interface"
- Previous message: Anno Siegel: "Re: Perl loops should use break, not last"
- Next in thread: Jim Keenan: "Re: Perl equivalent for Unix ps."
- Reply: Jim Keenan: "Re: Perl equivalent for Unix ps."
- Reply: Gregory Toomey: "Re: Perl equivalent for Unix ps."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|