Javier Bezos
<jbezos(a)fundeu.es> wrote:
The touch'es are just to see if the bash file
is run. And indeed it's.
However, neither .dvi nor .log files are created (which are the result
of running latex). However, when running the script from the
command line everything is ok.
Most probably this is related to file access permissions.
Keep in mind that the script is executed as the webserver
user ("www", "apache", "nobody", ....) which is probably
different than the user you are logged as when trying
it from the command line.
First, I would figure out ("pwd > /tmp/whereami" from the
script) where your script ends up running (and in which
directory it attempts to create files), and then
check permissions on that directory.
//Saper