From: "Ara.T.Howard" Date: 2005-05-25T03:42:13+09:00 Subject: Re: Killing a Process started with Kernel.system On Tue, 24 May 2005, Berger, Daniel wrote: > require "win32/open3" > > input, out, err, pid = Open4.popen4(command) > ... > > Process.kill(pid) > > Regards, awesome! so can do something like this from now on to make code semi-portable? begin require 'open4' rescue require "win32/open3" end input, out, err, pid = Open4.popen4(command) it would be great to wrap this up and get it into ruby - that way there would be a standard way to write portable (in some fashion) programs that spawn external commands. my current project, dirwatch, which watches a directory for events and spawns user defined actions for them needs just such a thing. thanks tons! -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | My religion is very simple. My religion is kindness. | --Tenzin Gyatso ===============================================================================