From: nobu.nokada@... Date: 2003-02-04T09:01:02+09:00 Subject: Re: tkgnuplot problem: fork() on win (popen3 for windows?) Hi, At Tue, 4 Feb 2003 03:52:28 +0900, nagai@ai.kyutech.ac.jp wrote: > 3. try the test script > ----------------------------------------- > require 'gnuplot.rb' # maybe need change the path of library > STDERR.sync = true > gp = GnuplotProcess.new('c:\program files\design\gnuplot\gp371w32\pgnuplot.exe') I guess qoutes surround command path are necessary. gp = GnuplotProcess.new('"c:\program files\design\gnuplot\gp371w32\pgnuplot.exe"') Or, this seems better, put quotes in command for win32_popen4. def _win32_open_process(*cmd) require 'win32_popen' + cmd.collect! {|s| /\s/ =~ s ? %{"#{s}"} : s} IO.win32_popen4(cmd.join(' ')) end -- Nobu Nakada