From: nagai@... Date: 2003-01-31T10:34:51+09:00 Subject: Re: tkgnuplot problem: fork() on win (popen3 for windows?) Hi, From: Ralf Subject: Re: tkgnuplot problem: fork() on win (popen3 for windows?) Date: Fri, 31 Jan 2003 03:23:02 +0900 Message-ID: <3e396ad1$1@epflnews.epfl.ch> > In Gordon Millers Gnuplot.rb this works to start gnuplot: > @cmd = 'c:\program files\design\ > gnuplot\gp371w32\pgnuplot.exe' # path to *my* gnuplot > @gnuplot = IO::popen(@cmd, "w") > > > Please try the following check on irb. > > > > irb(main):001:0> require './gnuplot.rb' > > irb(main):002:0> gp = GnuplotProcess.new > > irb(main):003:0> gp.cmd('plot sin(x)') > > > same error message as before ... Well, what happen when you give the gnuplot command path to 1st argument of GnuplotProcess.new method ? irb(main):001:0> require './gnuplot.rb' irb(main):002:0> gp = GnuplotProcess.new('c:\program files\design\gnuplot\gp371w32\pgnuplot.exe') irb(main):003:0> gp.cmd('plot sin(x)') -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)