Mike Lake scribed:
What about if the apache script writes a small file in /tmp/matlab/
directory and the user process is looking at that directory every 30
seconds. If the user script sees the file, reads it, gets params from
the file and run. It drops the plot into a directory apache can read.
Cludgy but I'm sure that would work.
Definitely, and I've considered it as a last resort, but I'd like to be able to update the
users web view with the new image. I.E when the user clicks on submit, it runs a php,
which calls the script that runs matlab, when control returns to php it produces a page
with the resulting image in it. All works perfectly except the user gets a page full of
licencing errors because the script that runs matlab is executing as apache not matlab :-(
I have looked at the idea of using ssh, I.E the script ssh's onto localhost as matlab and
runs the command. That might work but I need to put .ssh/dsa_id keys in apaches home
directory???? looks like a cludge. Seems that apaches suexec was designed for this
problem, just not sure I want to put that RPM on my running server.
P.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html