Thanks
in line comments
Tom Phoenix wrote:
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?
apparently unlink will not deal with wild cards in $oldimage
(needed to clean up garbage)
second line could be unlink although that line is just for debug
hopefully gone soon!
`/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 which
order, perhaps, so that errors would go into the file?
reversed order of redirections, same result
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
application is to extract signal and noise history of a microwave radio
and plot a time series
on demand from a click on a web page
which module would you suggest?
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>