From: Vardhan Varma Date: 2001-08-07T01:47:41+09:00 Subject: [ruby-talk:19232] Re: redirecting stdout, stderr from Kernel#system on W2K Are you invoking the script as myscript.rb ( with ruby being implicitly invoked by .rb ) or as ruby myscript.rb AFAIK, first one will not work, but second one should work. May be, inside 'system()' call, ruby create the process with 'create-new-console' flag, in which case, this needs to be fixed. --Vardhan At 09:05 PM 05-08-01, MikkelFJ wrote: >I'm trying to use a ruby script as a simple make tool where I essentially >tell the script everything it should do. >But I can't get the output from the system command to be forwarded to the >Ruby output. >I call the script from within an IDE on Win2K > >I get the output from Ruby puts into the IDE but neither "echo hello" nor >the external compiler output shows up. > >puts "build initiated" >system("echo hello") >system("mycompiler myfile") >puts "build completed" > >Initially I thought the issue were related to stderr, but since 'echo' also >doesn't work, it must be stdout as well. I believe the compiler uses stderr >for output. > >Mikkel -- Vardhan Varma ... till Yahoo is free _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com