Mike Lake wrote:
> I can't work out why a cgi script which fires off latex to process a
> file in /tmp does not seem to be able to write the dvi file or its log
> file. The application creates a file called 192.168.1.4.tex fine.
> But latex won't run on it from the cgi script.
Someone privately suggested to check the directory the script was running in
so I added a pwd instead of the date and it says /home/mikel/cgi-bin which
is where the script runs from. I therefore added a "cd /tmp" to that system call
so that latex would be run from that /tmp dir. Now I get this:
> system("date > /tmp/chemlabel.log; latex $latex_file >> /tmp/chemlabel.log") && \
> die "can't run latex on $latex_file !";
/tmp$ cat chemlabel.log
This is TeX, Version 3.14159 (Web2C 7.3.1)
*
! Emergency stop.
<*> /tmp/192.168.1.4.tex
No pages of output.
Transcript written on 192.168.1.4.log.
Ah better. and 192.168.1.4.log. says
.... < - lots stuff snipped
End of file on the terminal!
Ummm ???
I will have a further investigate there.
Mike
--
--------------------------------------------------------------------
Michael Lake
Active caver, Linux enthusiast and interested in anything technical.
Safety Convenor, Australian Speleological Federation
Owner, Speleonics (Australia)
--------------------------------------------------------------------
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug