in reply to system call to pdflatex

got it - the whole time I didnt realize (know) that the "system" perl call uses / as its working dir, not the working dir of the perl script... And he obviously didnt have right to write there so... putting cd /tmp && In front of every system call fixed it... took me 3 hours to realize this... GREAT!

Replies are listed 'Best First'.
Re^2: system call to pdflatex
by choroba (Cardinal) on Nov 24, 2011 at 12:33 UTC
    the "system" perl call uses / as its working dir, not the working dir of the perl script
    Not true. Check
    perl -e 'system q{/bin/pwd}'
    Somehow you are setting the script's working directory to /.

      ... it may also be that Apache is launching the Perl script with a working directory of /.

        Counts as "somehow" for me :-) Yes, it is highly probable. And it should be configurable, too.