From: greg@bigband.msm.com (Greg Merrell)
Subject: Re: printcap output filters
Date: 1996/01/22 [thread overview]
Message-ID: <4dv534$hdm@kadath.zeitgeist.net> (raw)
In-Reply-To: 4d0ge3$lkf@chaos.dac.neu.edu
Chris Johnson (johnson@neu.edu) said:
> I'm trying to get an output filter to work from printcap for lpd.
> Having trouble doing so.
Several others replied with schemes to get it to work, but none that were
completely happy with their solutions.
I bought a DEClaser 5100 printer and made the assumption that Digital could help
me make it work with my Dunix system. Silly me. After quite a number of traded
messages with the CSC, I stumbled upon a solution that worked for me.
Here is what my printcap file looks like:
prez|lp0|lp|0:\
:lp=/dev/nic/prez:\
:of=/usr/lbin/ps_level2of:\
:sd=/usr/spool/prez:
In my case, /dev/nic/prez is a pipe created by the following startup script:
#!/sbin/sh
#
# Control the remote line-printers
case "$1" in
'start')
if /usr/nic/nic_print /dev/nic/prez prez 10001&; then
echo "Prez print service started"
fi
;;
*)
echo "usage: $0 {start}"
;;
esac
Since the 5100 uses a telnet type connection through port 10001, the only
way for me to talk to it is through this pseudo device. I noticed that in your
case, you have a similar sort of connection mechanism, so this may work for you.
The ps_level2of is capable of recognizing both text and PS format files, so I
just have the single queue.
I got misled as did you because I could get the command line form to work but
not the printcap. The use of the lp option seemed to be the trick.
Greg
=========================My return addresses are==============================
Greg Merrell Internet: greg@netuser.com
MSM Company/Netuser Communications Voice: +1-408-253-0970
Cupertino, CA Fax: +1-408-253-0590
==============================================================================
next prev parent reply other threads:[~1996-01-22 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-10 5:00 printcap output filters Chris Johnson
1996-01-10 5:00 ` Philip Sterne
1996-01-12 5:00 ` Boyd Adamson
1996-01-10 5:00 ` Charles Richmond
1996-01-22 5:00 ` Greg Merrell [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-01-14 5:00 Ralf Puchner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox