ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* webserver error
@ 2000-06-05 17:04 Anders Alstrin
  2000-06-05 19:22 ` Ed L Cashin
  0 siblings, 1 reply; 3+ messages in thread
From: Anders Alstrin @ 2000-06-05 17:04 UTC (permalink / raw)


Hi all.

I´m trying to execute a shell script from a php program but
texexec gives me an Error.

TeXExec 2.1 - ConTeXt / PRAGMA ADE 1997-2000

locating ini file : found by kpsewhich
reading : /usr/local/teTeX/share/texmf/context/config/texexec.ini
setting : 'TeXShell' to 'tetex' for 'all'
setting : 'UsedInterfaces' to 'en,nl,de,uk' for 'all'
setting : 'UserInterface' to 'en' for 'all'
setting : 'TeXExecutable' to 'tex' for 'all'
setting : 'MpExecutable' to 'mpost' for 'all'
setting : 'MpToTeXExecutable' to 'mpto' for 'all'
setting : 'DviToMpExecutable' to 'dvitomp' for 'all'
setting : 'DviSpecialScript' to 'dvispec' for 'all'
setting : 'UsedInterfaces' to 'en,nl,de,uk' for 'tetex'
setting : 'UserInterface' to 'en' for 'tetex'
setting : 'TeXExecutable' to 'pdfetex' for 'tetex'

used setting : TeXShell = tetex
used setting : SetupPath =
used setting : UserInterface = en
used setting : UsedInterfaces = en,nl,de,uk
used setting : TeXFontsPath = .
used setting : MpExecutable = mpost
used setting : MpToTeXExecutable = mpto
used setting : DviToMpExecutable = dvitomp
used setting : TeXProgramPath =
used setting : TeXFormatPath =
used setting : ConTeXtPath =
used setting : TeXScriptsPath =
used setting : TeXExecutable = pdfetex
used setting : TeXVirginFlag = -ini
used setting : TeXPassString =
used setting : TeXFormatFlag =
used setting : FmtLanguage =
used setting : FmtBodyFont =
used setting : TcXPath =

locating fmtutil : found
executable : pdfetex
format : cont-en
inputfile : /nexit/kunder/P004/html/test3
output : standard
interface : en
options : verbose once
current mode : all
outputfile : knulla4

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:
! Emergency stop
No pages of output.

run time : 0 seconds
renaming : /nexit/kunder/P004/html/test3 to knulla4

/Anders


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: webserver error
  2000-06-05 17:04 webserver error Anders Alstrin
@ 2000-06-05 19:22 ` Ed L Cashin
  2000-06-06  8:35   ` Anders Alstrin
  0 siblings, 1 reply; 3+ messages in thread
From: Ed L Cashin @ 2000-06-05 19:22 UTC (permalink / raw)
  Cc: ntg-context

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/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: webserver error
  2000-06-05 19:22 ` Ed L Cashin
@ 2000-06-06  8:35   ` Anders Alstrin
  0 siblings, 0 replies; 3+ messages in thread
From: Anders Alstrin @ 2000-06-06  8:35 UTC (permalink / raw)


Ed L Cashin wrote:

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

Ok.. The problem was an old logfile.with wrong perms that was interfering
with the new "nobody" logfile.
Stupid me..
But now everything works and i´m wery happy.

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

Jepp..

Thanks..
Anders


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-06-06  8:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-05 17:04 webserver error Anders Alstrin
2000-06-05 19:22 ` Ed L Cashin
2000-06-06  8:35   ` Anders Alstrin

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