Solved

DVIPS fails in printer filter

Posted on 1998-10-07
2
263 Views
Last Modified: 2010-04-20
I'm using a printer filter that recognizes a DVI file and sends it through dvips and gs before printing it.

This works okay if all my fonts exist beforehand, but if dvips has to generate the fonts, it fails.

Dvips invokes MakeTeXPK, which then dies with the error message "No child process".

But if I invoke the printer filter directly from the command line, everything works fine. It only fails if
the printer filter is called by lpd.

I've tried checking various ulimit settings and my PATH environment, but everything looks right. I've recompiled lpd. I've replaced the standard RedHat printer filter with one of my own invention, but the result is always the same.

Any ideas?
0
Comment
Question by:cto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
narzola earned 200 total points
ID: 1638233
My guess is that you have a permission/access problem.

The following procedure will determine if this is the case.  (Please note that this procedure will make the LPD daemon run as root which makes your system less secure.  Undo this change as soon as you have verified whether or not you have permission problem).

      (1) Using your favorite text editor, open the file /etc/passwd.

      (2) Find the line that begins with 'lp:'.  On my system it looks like:

            lp:*:4:7:lp:/var/spool/lpd:

      (3) Write down the number that appears after the second colon.  You will need this later to undo this change.  On my system, this number is '4'.

      (4) Change the number after the second colon into a zero.  on my system, the change would be:

            lp:*:0:7:lp:/var/spool/lpd:

      (5) Reboot your system

      (6) Attempt to make a printout using lpr.

      (7) Undo the change you made in step 4.

      (8) Reboot your system

If the printout worked in Step 6, then your problem is that LPD does not have sufficient permissions to create the needed fonts.  You can fix this problem in one of two ways.

(1) Make the directory where the fonts are created writable to the user 'lp'.  This may not be practical because, for some TeX/LaTeX installations, this means making the directory world writable.

(2) Change the scripts so that fonts get created in /tmp.  This is probably the better solution.  You will need to monitor which fonts are getting created on the fly.  If you see that a particular font is always being created, then you can run MakeTeXPK manually to permanently create the font.
0
 

Author Comment

by:cto
ID: 1638234
No, this didn't do the trick. Even if I run lpd as root, dvips still produces output like this on standard error:

kpathsea: Running MakeTeXPK ecbx1095 600 600 1+0/600 ljfour
MakeTeXPK: running mf...gftopk...pk...done.
MakeTeXPK ecbx1095 600 600 1+0/600 ljfour: No child processes

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
python - find anything after $ question. 9 84
NTPD Client Port Usage 12 92
Fuzzy search functionality DB2 UDB 3 61
check the file dates in unix 14 76
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question