From: Hans Fugal Date: 2007-08-03T02:39:57+09:00 Subject: Re: Piping two shell commands together matt neuburg wrote: > Hans Fugal wrote: > >> I want to pipe two system commands together from within ruby. cmd1 and >> cmd2 are arrays, e.g. >> >> cmd1 = ['oggdec','-o','-',oldpath] >> cmd2 = ['lame','-',newpath] > > I don't know about the arrays, but you can say IO.popen ("oggdec | > lame").... m. > Yeah, that won't work here (unless there's a reliable way to shell-quote/escape oldpath and newpath).