Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: system call to pdflatex

by kosta (Sexton)
on Nov 24, 2011 at 12:21 UTC ( [id://939863]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found