[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to list all Child Processes of an Applikation

Jan Christoph

10/4/2007 8:35:00 AM

In my Ruby Applikation I start a windows-batch-script which then starts
apache tomcat.

As i need the output of that programm i run it with "IO.popen(cmd)"

Problems occur, when i now try to stop or kill that tomcat again.

Is there any method of getting the pids of the child processes of an
applikation?
i then could get the pid of the shell and with that the pid of the
tomcat applikation.

Thanks in advance
--
Posted via http://www.ruby-....

1 Answer

Jan Christoph

10/4/2007 10:28:00 AM

0

Ok i can get the pid of the child with:

io = popen(...)
pid = io.pid

But how do i get the pid of the grandchilds?
--
Posted via http://www.ruby-....