From: Robert Klemme Date: 2008-01-19T19:45:00+09:00 Subject: Re: Start a program, get it's output, then kill it. while "multithreading"... On 18.01.2008 21:18, Stephen Lewis wrote: > On Fri, Jan 18, 2008 at 07:56:34PM +0900, Robert Klemme wrote: >> 2008/1/18, Deadolus : >>> ... >>> I read about multithreading, IO.popen would be perfect, but how can I >>> kill iperf when I want to quit, before iperf ran out of time? >> ... >> >> About the killing I am not sure. With a quick check I did not find >> a proper way to get the PID of the child process with IO.popen. If >> ... > > It's a little hard to find until you already know where it is, but > IO#pid might come in handy here :) Thanks! I use #popen too infrequently and when I use it I do not normally fiddle with the process directly. Kind regards robert