From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2231 Path: main.gmane.org!not-for-mail From: Ed L Cashin Newsgroups: gmane.comp.tex.context Subject: Re: webserver error Date: 05 Jun 2000 15:22:38 -0400 Sender: owner-ntg-context@let.uu.nl Message-ID: References: <393BDDA9.FB3CD362@forprint.se> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035393020 7168 80.91.224.250 (23 Oct 2002 17:10:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:10:20 +0000 (UTC) Cc: "ntg-context@ntg.nl" Original-To: Anders Alstrin In-Reply-To: Anders Alstrin's message of "Mon, 05 Jun 2000 18:04:41 +0100" Xref: main.gmane.org gmane.comp.tex.context:2231 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2231 Anders Alstrin writes: > Hi all. > > I´m trying to execute a shell script from a php program but > texexec gives me an Error. ... > pdfetex -progname=context \&cont-en /nexit/kunder/P004/html/test3 > > This is pdfeTeX, Version 3.14159-14e-released-20000217-2.1 (Web2C 7.3.1) > > entering extended mode > ! I can't write on file `test3.log'. > Please type another transcript file name: As it says, pdfetex can't write to its logfile. Odds are pdfetex is running as whatever user the webserver is, whether that's "web" or "nobody" or whatever. A nice way to handle that is to carefully create a uniquely-named directory in a temp directory like /var/tmp. Then you can make sure that all of your commands are executed in that new temporary directory. For example, the shell command would be something like this once you've made the temp directory "/var/tmp/aaa4172": sh -c '(cd /var/tmp/aaa4172 && texexec test3)' -- --Ed Cashin PGP public key: ecashin@coe.uga.edu http://www.coe.uga.edu/~ecashin/pgp/