Regarding Process Ids
Posted: Sun Oct 23, 2005 6:40 am
Hi all ,
I need to write an utility prgm in perl which should work like this
perl 3(level) PID prgmname.pl(perl program)
If the level and PID are given then the prgm might display the child and grandchild pid's upto the given level.
the output should look like
PID
---------------------------------------------------------------
| |
child1PID child2 PID
-------------------------------------- ----------------------
| | | | |
grandchild
PID ........... child 2's child
PID
.
.
.
the Id needs to be fetched upto the given levels
any idea please notify me
thanks®ards,
karthick
I need to write an utility prgm in perl which should work like this
perl 3(level) PID prgmname.pl(perl program)
If the level and PID are given then the prgm might display the child and grandchild pid's upto the given level.
the output should look like
PID
---------------------------------------------------------------
| |
child1PID child2 PID
-------------------------------------- ----------------------
| | | | |
grandchild
PID ........... child 2's child
PID
.
.
.
the Id needs to be fetched upto the given levels
any idea please notify me
thanks®ards,
karthick