From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,aaf80a642ce58020,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,aaf80a642ce58020,start X-Google-Attributes: gidfee84,public From: Gregory Neil Shapiro Subject: Adding DVI printer filter to LPSBASE500 setup Date: 1996/07/01 Message-ID: #1/1 X-Deja-AN: 163145572 sender: gshapiro@scooter.WPI.EDU organization: Worcester Polytechnic Institute, Worcester, MA 01609-2280 newsgroups: comp.sys.dec,comp.unix.osf.osf1 We are using PrintServer Software for OSF/1 AXP LPSBASE500 to print to our DEC PrintServer 17 printer. The software created the following printcap file: lps17|lps17 (PrintServer lps17):\ :lp=/dev/null-lps17:\ :sd=/var/spool/lps17:\ :of=/usr/opt/LPS/bin/OSF1_V1.3/lpsof:\ :if=/usr/opt/LPS/bin/OSF1_V1.3/lpsif:\ :lf=/var/adm/lps17.log:\ :pl#66:pw#80:mx#0:sb: We need to add a DVI print filter (df) to the printcap file in order to convert DVI files to PostScript for the printer. We have done this in the past when the printer was connected via an Ultrix host. We added: :df=/usr/local/bin/lps20_TeXdvi:\ lps20_TeXdvi simply sends stdin to dvips which sends PostScript through stdout. Unfortunately, lpsof (the output filter) doesn't like this: lpsof Jun 28 14:35:21: Session started for Job 0 (root@wpi.WPI.EDU), lps17 job number is 327 lpsof Jun 28 14:35:21: New queue status: lps17: printing Job 0 (file #0) for root@wpi.WPI.EDU to PrintServer "lps17" (lps17) lpsof Jun 28 14:35:21: Starting file #1 in Job 0 for root@wpi.WPI.EDU lpsof Jun 28 14:35:21: New queue status: lps17: printing Job 0 (file #1) for root@wpi.WPI.EDU to PrintServer "lps17" (lps17) << This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software ' TeX output 1996.06.28:1132' -> . [1] >> Filter 'd' terminated (sig=-1,err=0) lpsof Jun 28 14:35:23: Failure to open lpsif pid file(/var/spool/lps17/.lpsifpid): Bad file number lpsof Jun 28 14:35:25: CRITICAL FAILURE in contacting lpsif filter lpsof Jun 28 14:35:25: Terminating current print session with lps17 lpsof Jun 28 14:35:25: Attempt to signal lpsif filter when pid not set! lpsof Jun 28 14:35:25: Aborting file #1 in Session for root@wpi.WPI.EDU lpsof Jun 28 14:35:25: Attempt to signal lpsif filter when pid not set! lpsof Jun 28 14:35:25: Unexpected PAP error encountered: Connection not open to server lpsof Jun 28 14:35:25: Inconsistency in EndDocument() lpsof Jun 28 14:35:25: INTERNAL ERROR DETECTED...send SIGINT to process 21784 to exit... lpsof Jun 28 14:35:25: New queue status: FAILURE in print filters...please contact the system manager! As you can see lpsof tries to open an lpsif pid file (/var/spool/lps17/.lpsifpid). Since the print job was submitted with "lpr -d", the df print filter is used, not the if print filter (lpsif). What is the proper way to add a DVI print filter?