Jan Eden wrote:
The script manages to write data to my output file if I created it
first and chmodded it to 666, but fails otherwise.
This is because the script is run by the web user, of course. Is
there a more or less secure way to allow the script to
a) create / write to a file
b) apply pdflatex to that file (i.e. create a pdf file from the .tex
source)
You can give the directory in which the file will be located 0777
permissions. Once the file has been created by the script, you can
change the directory permissions to e.g. 0755.
c) open the resulting pdf file (using the open function in OS X)
To allow somebody but the web server to open a script created file for
reading, have the script give it 0644 permissions.
It sounds as if you need to read up on the Unix/Linux permissions system.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>