From: Stephen Lewis Date: 2008-01-19T05:18:11+09:00 Subject: Re: Start a program, get it's output, then kill it. while "multithreading"... 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 :) -- Stephen Lewis