Hi Gunnar,

Gunnar Hjalmarsson wrote on 17.10.2004:

>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.

Hrm. I do know about the permissions system. But I made a stupid mistake anyway. 
pdflatex is not in the web server user's path, so the script did not find it. I used 
the absolute path to pdflatex now, and got a result.

Thanks,

Jan
-- 
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe 
this to be a coincidence. - Jeremy S. Anderson

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to