From: Clemens Wyss Date: 2001-11-17T01:23:46+09:00 Subject: [ruby-talk:25502] Re: "cvs commit" from within ruby ts wrote in news:ec0%6.95729$yz5.4047984@e420r-sjo2.usenetserver.com: >>>>>> "C" == Clemens Wyss writes: > > C> Unfortunately I don't get to see the error message of my try to > commit. C> Why does commit not work as a system-call? > > Work for me > > > pigeon% cat b.rb > #!/usr/bin/ruby > system('cvs commit -m "hello" b.rb') > pigeon% > > pigeon% b.rb > RCS file: /home/ts/tmp/ccu/tt/b.rb,v > done > Checking in b.rb; > /home/ts/tmp/ccu/tt/b.rb,v <-- b.rb > initial revision: 1.1 > done > pigeon% > > > Guy Decoux > Under "pure cygwin ruby (1.7.1) with the cygwin cvs" and "pure cygwin ruby (1.7.1 with WinCvs1.2-cvs" I get this one running too, but not with the ruby1.6.3-1.exe installable and the WinCvs1.2-cvs. My implication therefore is that the ruby1.6.3-build ((2001-03-19) [i386-cygwin]) causes the "problem". Weird is also that I don't get any output. Neither with the '2>&1' nor with the (p)open3 call. See my popen3 code (copied from the open3.r file): === begin require "open3" cmd = 'cvs commit -m "checked" myFile' ini, out, err = Open3.popen3(cmd) Thread.start do while line = gets ini.print line end ini.close end while line = out.gets print ":", line end while line = err.gets print ":", line end ===== end NO OUTPUT AT ALL. Anymore hints? Regards Clemens