From cis@tegan.com Tue Aug 10 16:20:39 1999 Newsgroups: comp.unix.sco.misc Path: spln!extra.newsguy.com!lotsanews.com!nntp.primenet.com!nntp.gctr.net!newsfeed.berkeley.edu!news.msfc.nasa.gov!info.usuhs.mil!uky.edu!xenitec!news From: Tom Parsons Subject: Re: hpnpf and non-hp print servers Resent-From: mmdf@xenitec.on.ca Submit-To: scomsc@xenitec.on.ca Content-type: text/plain; charset=us-ascii Organization: [resent by] The SCOMSC gateway and Propagation Society Date: Tue, 10 Aug 1999 23:20:39 GMT Message-ID: <19990810182039.13932@tegan.com> Mime-Version: 1.0 In-Reply-To: <37b090c9.1390768@news.netlabs.net>; from Gary Quiring on Tue, Aug 10, 1999 at 08:55:32PM +0000 References: <37b04fa1.14572595@news.netlabs.net> <19990810121640.54587@tegan.com> <37b090c9.1390768@news.netlabs.net> Sender: cis@tegan.com Precedence: list Lines: 47 Xref: spln comp.unix.sco.misc:89988 Gary Quiring enscribed: | On Tue, 10 Aug 1999 17:16:40 GMT, Tom Parsons wrote: | | | >Surrender. | > | >Get netcat from: | > http://www.cruzio.com/~jeffl/sco/lp/ | | Ok, I surrender!! | | I downloaded it and compiled it. Yes, using netcat I got data to my | printer. Very nice. | | Now how do I get a filter in front of this using the interface file | (/usr/spool/lp/admins/lp/printers/). I would like to use | /usr/spool/lp/models/laserjetIIIsi. | | The interface line is just going to call the script. I tried a shell | netcat -h EMC0 -p 3002|/usr/spool/lp/models/laserjetIIIsi. This does not | work. Take the 5.0.5 laserjet interface script and make these mods: nroff="" italics="" duplex="" format="" # Determine which options have been invoked ( <----- Add this line for i in $5 do case "$i" in #Draining characters might be necessary. ${DRAIN} exit 0 ) | ${LOCALPATH}/netcat -h ngprint -p 4020 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <-- add this -- ========================================================================== Tom Parsons tom@tegan.com Sysop, SCOForum-CompuServe ==========================================================================