Matthew Dalton wrote:
......
> system calls. For instance, if the IFS is set to ' ' (space), the
> command:
> system("/usr/bin/command");
> turns to:
> system(" usr bin command");
>
> so instead of executing 'command' it looks for 'usr' instead. All this
> without a single parameter in the system call command string.
>
> Of course, Mike's commands don't have full pathnames, so they are
> relying on the PATH variable to be set correctly for the correct
> executable to be run.
Actually they do. I removed the '/usr/local/bin' and some of
the other parameters to make the code I sent simpler so as
not to hide the nature of the caching problem. I actually
call:
# This method creates meta data format then converts to a
small gif.
system("/usr/local/bin/graph -L 'Mono-molecular Reaction' -X
Time -Y 'Concentration (%)' /home/mikel/public_html/tmp/data
>| /home/mikel/public_html/tmp/temp.meta");
system("/usr/local/bin/plot -T gif --bitmap-size 400x400
/home/mikel/public_html/tmp/temp.meta >|
/home/mikel/public_html/tmp/order1.gif");
I presume that full pathnames is better for security.
What I'm going to do today is to cut down my cgi script to
the smallest program which still exhibits my caching
problem. Just a test page + gif. Then try out some more of
those suggestions.
Mike
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02
9514 1628
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text