From: Alex Eiras Date: 2009-04-28T00:26:53+09:00 Subject: Re: execuate command problem --000e0cd29aea94e7db04688af79c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Apr 27, 2009 at 5:20 PM, Martin Sharon wrote: > > > > Works for me > > > > 17:03:46 bin$ ruby < >> line = "tokyo paris london" > >> par = "23 23 11 43" > >> execute = "./comp #{line} #{par}" > >> puts execute > >> XX > > ./comp tokyo paris london 23 23 11 43 > > 17:12:42 bin$ > > > > You must have been doing something differently than posted. > > > > Kind regards > > > > robert > > Oh, I think the only difference is in my program > > f=File.open(ARGV[0], 'r') > line= f.gets > > line = f.gets.chomp to remove carriage return. Cheers --000e0cd29aea94e7db04688af79c--