Hi Jeff,

Thanks for the answer.
This module gives only partial answer. 
My wish is to traverse the system processes tree from parent to childes, and 
start it with a given process id.
As far as I understand this module gives you only the direct born childs that 
was forked by  a given Proc::Forking object.
  
Yours,

Yaron Kahanovitch


----- Original Message -----
From: "Jeff Pang" <[EMAIL PROTECTED]>
To: beginners@perl.org
Sent: Wednesday, July 11, 2007 10:18:12 AM (GMT+0200) Auto-Detected
Subject: Re: How to get a list of child processes (Unix systems only)


--- [EMAIL PROTECTED] wrote:

> Hi,
> 
> I am looking for an efficient way to get list of
> child (forked) processes of a given processes id.
> Has anyone idea how to do it in "pure perl style" ?
> 
> 

Is this process created by you?otherwise you may not
have the priviledge to access it,unless you're root.
You can also take a look at this module:

http://search.cpan.org/~fdulau/Proc-Forking-1.38/Forking.pm

And check for:

my $name = $f->list_names;

This function return a reference to a HASH.


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to