Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.uwa.edu.au!disco.iinet.net.au!news.uoregon.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news2.cais.net!news.cais.net!info.usuhs.mil!cs.umd.edu!coopnews.coop.net!hops.entertain.com!stout.entertain.com!not-for-mail
From: dwatson@stout.entertain.com (Darryl Watson)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: text to postscript filter in printcap broken
Date: 2 Jul 1996 14:53:24 -0600
Organization: ABWAM, Inc., full service ISP, voice: 1+ 303 730-6050
Lines: 51
Message-ID: <4rc284$8ev@stout.entertain.com>
NNTP-Posting-Host: stout.entertain.com
I have BSDI 2.0 with patches, and am trying to get a text-to-postscript
filter working. My printer is an Okidata 610e/PS. The system that I am
trying to print from is 'stout.entertain.com', the system which has the
printer is 'barley.entertain.com'.
Here is the text2post filter:
#! /bin/sh
/bin/cat - | /usr/contrib/bin/textps
Here is my /etc/printcap on stout:
oki|Okidata Postscript remote printer:\
:lp=:rm=barley:rp=oki:sd=/var/spool/lpd:lf=/var/log/lpd-errs:
#
okitext|Okidata Postscript remote printer (text to postscript):\
:lp=:rm=barley:rp=oki:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\
:of=/usr/contrib/bin/text2post:sh:mx=0:
and here is my printcap on barley:
oki|Okidata OL610e/PS:\
:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx=0:
If I send raw postscript to the 'oki' queue, I can print fine. If I send
text to the 'okitext' queue, I get the same errors as if clear text went
to the printer, so I am assuming that lpd is not running the output
filter of the 'okitext' queue.
Any non-priv'ed user can directly run the text2post filter on stout and
get postscript, so the script is functioning as expected.
I check /var/log/lpd-errs, and it says things like (I restarted the queue
again before trying to 'lpr -Pokitext text.dat'):
Jul 2 14:32:59 stout lpd[8141]: restarted
Jul 2 14:33:17 stout lpd[8152]: stout.entertain.com requests printjob okitext
My lastcomm command shows:
lpd -SF root __ 0.03 secs Tue Jul 2 14:33
lpr -SF root ttyp0 0.03 secs Tue Jul 2 14:33
It is my understanding that -SF in the lastcomm output means that the
command completed with an error code.
Has anyone got a similar setup working? My printer is NOT on a
bi-directional serial port, so I can't use lprps. :(
TIA!