From: ara.t.howard@... Date: 2006-08-04T09:40:02+09:00 Subject: Re: How to tell when IO::popen is finished? > I'm on windows :) I don't need root. Ohhh gives me goosebumps ;) > > The problem isn't that the file isn't created. It's just that I don't know > when it's finished being written. > > I want to incorporate this into an app but I don't want to go trying to grab > the image if it doenst exist yet. > > I'm not quite sure how your using PNG in your code above. Is this a > constant of gnuplot? > ?? it's set to the first command line parameter >> harp:~ > cat a.rb >> require 'rubygems' >> require 'gnuplot' >> >> PNG = ARGV.shift || 'test.png' it can be anything you like. you have one of two problems: - /test2.png is being interpreted as some sort of switch. definitely try without the leading slash - that's a bizarre filename anyhow... - the gnuplot exe is not being found in your PATH. search the archives - i've solved this one before. regards. -a -- happiness is not something ready-made. it comes from your own actions. - h.h. the 14th dali lama