From: "dtown22@..." Date: 2007-10-27T01:30:02+09:00 Subject: Re: cant seem to get system() & pipe to work together Hi Mac, That commented line was a previous attempt at formatting the 'cmd' differently. I tried many different formats and varations, none of which seemed to work. Thanks -d On Oct 25, 4:31 pm, Michael Linfield wrote: > > ffmpeg = '"C:\\Documents and Settings\\dt\\Desktop\\my stuff\\songs\ > > \wma\\ffmpeg.exe"' > > lame = '"C:\\Documents and Settings\\dt\\Desktop\\my stuff\\songs\ > > \wma\\lame.exe"' > > > newFile = child.sub('wma', 'mp3') > > #cmd = ffmpeg + " -i " + child + " -vn -f wav - | " + lame + " -V 6 - > > " + newFile > > cmd1 = "#{ffmpeg} -i #{child} -vn -f wav - | #{lame} -V 6 - > > #{newFile}" > > puts cmd1 > > system(cmd1) > > > NOTE: child points to the same file wma file as above. > > > If i copy and paste the output of the puts command above into a > > command window, it works fine...but from ruby, it seems to ignore the > > pipe (|) command. I dont know if this is a windows issue, or if i am > > missing something obvious. Any help is greatly appreciated. > > I have no idea if this was intentional or not but... > #cmd = ffmpeg + " -i " + child + " -vn -f wav - | " + lame + " -V 6 - > > > " + newFile > > The # in front of cmd comments that entire line out..once again i have > no idea if you were just putting that there to make a point in your post > so I'm just making sure. > > - Mac > -- > Posted viahttp://www.ruby-forum.com/.