From: Hee-Sob Park Date: 2000-11-21T12:10:04+09:00 Subject: [ruby-talk:6483] Re: %x{...} and ` not working? Hi, "Niklas Backlund" wrote in message news:Pine.SOL.4.30.0011210014370.16999-100000@my.nada.kth.se... > Hi, > > I'm reading The Book, and I was trying out %x{dir} et al on > page 75... but all I get is: > > test.rb:1: command not found: dir > > I tried the backquote operator, other DOS commands... Nothing > worked! > > I also tried to use IO.popen -- Same deal! > > I'm running > > ruby 1.6.2 (2000-11-04) [i386-cygwin] > > under Win98... Any ideas? > Insert 'command.com /c' before internal DOS command. like ruby -e "print %x{command.com /c dir}" > > /Niklas > > Park, Hee-Sob