Hi,

At Wed, 25 May 2005 03:42:13 +0900,
Ara.T.Howard wrote in [ruby-talk:143556]:
>    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.

That interface feels ugly to me.

Once I thought like:

  child = Process.spawn([cmd, *arg], STDIN=>input, STDOUT=>output, STDERR=>err)
  Process.waitpid(child.pid)

but not sure yet.

-- 
Nobu Nakada