[OS X TeX] [OT] Serving generated pdf files via a web server

Alan Munn amunn at gmx.com
Mon Sep 6 15:49:09 EDT 2010


On Sep 6, 2010, at 3:13 PM, Ross Moore wrote:

> Hi Alan,
>
>
> On 07/09/2010, at 1:54 AM, Alan Munn <amunn at gmx.com> wrote:
>
>> Hi, sorry if this is a bit off topic.  I've been experimenting with  
>> generating some latex files via a web form and a cgi script  
>> (written in Ruby, although I don't think this is relevant).  I've  
>> successfully been able to generate the files, but using /var/tmp as  
>> a location.   But this doesn't allow me to serve the generated  
>> files back to the browser. I'm not even sure of the exact question  
>> I need to ask, but it's something like this: how do I write to a  
>> file in a directory that can then be accessed by the browser.  
>> (Simplistically, how do I get my script to write to /Library/ 
>> WebServer/Documents?)
>
> The scripting language should have a command to change the working  
> directory from it's default location. Look for something like: cwd  
> or chdir or setdir .


Thanks Ross.  The problem was one of permissions rather than changing  
directories.  Solved now.  Thanks.

Alan

-- 
Alan Munn
amunn at gmx.com







More information about the MacOSX-TeX mailing list