Perl equivalent for Unix ps.

Prab_kar_at_hotmail.com
Date: 01/31/05


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



Relevant Pages

  • 0XC0000005 ( Access Violation ) in LocalTime ?
    ... I'm not a perl developer but I'm trying to assist one of my customer who ... Also it could be a memory allocation problem but ... here is the perl function that is called: ...
    (comp.lang.perl.misc)
  • Re: Perl equivalent for Unix ps.
    ... > Is there any Perl function which works like the Unix ps command? ... > I'm rewriting a Bourne shell script in Perl and the sh script uses the ...
    (comp.lang.perl.misc)
  • perl optimazation guide/book
    ... Are there any books or guide to Perl function and operator and syntax ...
    (comp.lang.perl.misc)
  • Re: Handling international characters in filenames on Win32
    ... I now need to find a perl function that will let me get the same result as ... Perl so I am probably wrong) I haven't found a way to make it recursive. ... > Sounds like one of those codeset conversion problems. ... if you use perl functions (rather than a sytem command) ...
    (comp.lang.perl.misc)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)