From: Name Name Date: 2006-07-12T04:28:09+09:00 Subject: Re: Processes and Portability I don't understand how that is different than: a=IO.popen(program_name > logfile) Process.kill(9, a.pid) Harmen Schut wrote: > Name Name wrote: >> ... >> >> a=IO.popen(program_name > logfile) >> Process.kill(9, a.pid) >> >> spawns two processes and does not kill both. >> >> I need something to be able to do the latter. >> >> thanks > > What about: > > a=IO.popen("#{program_name} > #{logfile}") > Process.kill(9, a.pid) > > Don't know if that works on MSWindows. > > Harmen -- Posted via http://www.ruby-forum.com/.