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

Ross Moore ross.moore at mq.edu.au
Mon Sep 6 15:13:35 EDT 2010


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 .

> 
> If anyone can give me some pointers on this, I'd appreciate it.
> 
> Alan
> 
> -- 
> Alan Munn
> amunn at gmx.com


Hope this helps,

    Ross


More information about the MacOSX-TeX mailing list