@marc: "I have a daemon that provides a webservice (using FastCGI behind a =
lighttpd server) on NetBSD 5.0.  It produces PDF documents by creating a =
.tex file, then running LaTeX, dvips, and ps2pdf on it.
The  exact sequence of command is:
latex <filename> >/dev/null
latex <filename> >/dev/null
dvips  -Ppdf -G0 <filename>.dvi >/dev/null 2>&1
ps2pdf  <filename>.ps >/dev/null
The daemon is started with a script in /etc/rc.d.
Now my problem is, when this sequence of commands is run from the daemon =
which was started a system boot time, it does not work.  It creates a =
PDF (so ps2pdf does run), but it is empty.  So 'latex' did not run or =
did not produce any dvi file.
If I, however, log in to the machine as root and restart the daemon =
(/etc/rc.d/<name> restart), it works as expected, creates and delivers =
the PDF.
Right now, I am a bit clueless as which could cause this.  Lack of a =
controlling tty when started during boot?
Any hints would be appreciated...
- Marc
Posted automagically by a mail2news kayleenewman@example.org e.V.
Please direct questions, flames, donations, etc. to <email_address>"
    @martin: "<quote>
My bet would be on subtle differences in the environment.
Martin
Posted automagically by a mail2news kayleenewman@example.org e.V.
Please direct questions, flames, donations, etc. to <email_address>"
    @jhawk: "<quote>
Step one should be to stop redirecting stdout (and stderr!) to /dev/null
and instead send them to a file and read it.
jhawk
Posted automagically by a mail2news kayleenewman@example.org e.V.
Please direct questions, flames, donations, etc. to <email_address>"
    @is: "<quote>
Hm. You say ps2pdf runs, so the script (or well, the daemon) has a 
writable current working directory? In this case, what does the 
<filename>.log say?
(I've had such an effect with a script that ran before /var or /usr
was mounted..  but I think this can be ruled out?)
Regards,
	-is
Posted automagically by a mail2news kayleenewman@example.org e.V.
Please direct questions, flames, donations, etc. to <email_address>"
    @asau: "Marc Balmer <email_address> writes:
<quote>
I'd suggest "latex -interaction nonstopmode <filename>"
or "-interaction batchmode" for non-interactive use.
(Also, you may need to run it one more time.)
HE CE3OH...
Posted automagically by a mail2news kayleenewman@example.org e.V.
Please direct questions, flames, donations, etc. to <email_address>"
{'source': 'USENET', 'other_information': '{"reply_count": 4, "forum_name": "muc.lists.netbsd.tech.userlevel.20141117.mbox"}', 'file': 'data/output/usenet-muc.lists.parquet'}