From: nobu.nokada@... Date: 2002-03-15T15:32:18+09:00 Subject: Re: cygwin port system() problem Hi, At Fri, 15 Mar 2002 15:00:38 +0900, Nikolay Elkov wrote: > When executing a windows command containig output redirection via ruby's > system(), redirection doesn't work. Example: > system("rsh>output.txt") > dir outpu.txt > No such file or directory > > If I run the above script in Cygwin's bash shell it works as expected. How > can I get it to work outside the shell? The ruby script needs to run as a > cgi for IIS, so the other alternative is to get cgi to work inside bash. I > haven't got the slightest clue how to do that, though. Any suggestions > welcome. system() under cygwin uses /bin/sh.exe, so you need to include the $(cygwin)/bin direcrtory to PATH environment variable. Bash does it automatically. -- Nobu Nakada