On 8/19/06, John Ackley <[EMAIL PROTECTED]> wrote:

`/bin/rm -f \"$oldimage\"`;
`/bin/rm /tmp/errormessage`;

Why not simply use Perl's unlink function?

`/usr/local/bin/gnuplot $gpfile 2>&1 >/tmp/errormessage` ;

Use backticks if you're interested in the output. But if you're not
looking at the output, you should probably use system instead. In this
case, since you've sent the errors to filehandle 1 (which is to say,
gnuplot's errors will become become the return value of the
backticks), you're discarding any error messages that gnuplot
produces. Did you mean to put the two redirections in the opposite
order, perhaps, so that errors would go into the file?

But I see a number of modules on CPAN that involve gnuplot. Maybe you
could save yourself some time and trouble by building upon one of
those.

   http://search.cpan.org/search?query=Gnuplot&mode=all

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to