I have a program which should create a new image
after deleting the old. Image names have $$ embeded
to assure uniqueness (within a reasonable period of time).
The following backticks don't work as expected.
`/bin/rm -f \"$oldimage\"`;
`/bin/rm /tmp/errormessage`;
`/usr/local/bin/gnuplot $gpfile 2>&1 >/tmp/errormessage` ;
result:
oldimage is NOT removed
empty errormessage file created
gnuplot creates no image, no error message
after program runs
manually entering command line
# /usr/local/bin/gnuplot $gpfile
(value of $gpfile substituted, of course)
does create the new image (see below)
I had used system() with the same results
switched to backticks in desperation
where do I look?
------------------------------------
[14:27:41 UTC [EMAIL PROTECTED] ~]
# ls -l /usr/local/mybox/html/images/day*
ls: /usr/local/mybox/html/images/day*: No such file or directory
[14:29:05 UTC [EMAIL PROTECTED] ~]
# /usr/local/bin/gnuplot /tmp/day-0020a6-5a9bfc.gp
[14:29:21 UTC [EMAIL PROTECTED] ~]
# ls -l /usr/local/mybox/html/images/day*
-rw-r--r-- 1 root wheel 7286 Aug 19 14:29
/usr/local/mybox/html/images/day-0020a6-5a9bfc-93798.png
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>