How to list all Child Processes of an Applikation

J

Jan Christoph

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
 
J

Jan Christoph

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top