ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ed L Cashin <ecashin@coe.uga.edu>
Cc: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: webserver error
Date: 05 Jun 2000 15:22:38 -0400	[thread overview]
Message-ID: <m3g0qs3pc1.fsf@coe.uga.edu> (raw)
In-Reply-To: Anders Alstrin's message of "Mon, 05 Jun 2000 18:04:41 +0100"

Anders Alstrin <anders.alstrin@forprint.se> 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/


  reply	other threads:[~2000-06-05 19:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-05 17:04 Anders Alstrin
2000-06-05 19:22 ` Ed L Cashin [this message]
2000-06-06  8:35   ` Anders Alstrin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3g0qs3pc1.fsf@coe.uga.edu \
    --to=ecashin@coe.uga.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).