From: Name Name Date: 2006-07-12T04:36:15+09:00 Subject: Re: Processes and Portability I'm sorry if my previous thing was confusing, but it was actually: IO.popen("program_name > logfile"). Harmen Schut wrote: > It is one String argument (a command line) instead of an expression > (compairing two String variables?) > > Harmen > > Name Name wrote: >> 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/.