From: Daniel Berger Date: 2006-06-07T07:44:05+09:00 Subject: Re: Ruby and Gnuplot under Windows (was: Re: External applicationunder Windows) ara.t.howard@noaa.gov wrote: > On Wed, 7 Jun 2006, Daniel Berger wrote: > >> Nuralanur@aol.com wrote: >>> Dear Chris, >>> thanks for pointing me to ruby gnuplot. However, I need to >>> set up a connection under Windows XP (in addition to one >>> in Linux). >>> Now, in the manual of Ruby Gnuplot, >>> it says: >>> Gnuplot.open Instantiates a new Gnuplot process. The path to the >>> executable is determined on a Unix or MacOSX system using the which >>> command. Windows users, I have no idea what to do. If a block is >>> given to the function the opened process is passed into the block. >>> This mimics the most common usage of the File.open method. >>> > >> Note to author of Gnuplot.open: use File.which, from the ptools >> package. It's cross platform. > > but doesn't seem to be in my ruby? where are you getting it? > > -a gem install ptools :) I *thought* FileUtils had a 'which' equivalent, but I guess I was mistaken. Regards, Dan