From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,406d5d6061e2ec0c X-Google-Attributes: gidfee84,public From: greg@bigband.msm.com (Greg Merrell) Subject: Re: printcap output filters Date: 1996/01/22 Message-ID: <4dv534$hdm@kadath.zeitgeist.net>#1/1 X-Deja-AN: 136255539 distribution: world references: <4d0ge3$lkf@chaos.dac.neu.edu> organization: OrgFreeware reply-to: greg@bigband.msm.com (Greg Merrell) newsgroups: comp.unix.osf.osf1 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 ==============================================================================