Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!ncar!ames!nrl-cmf!cmcl2!brl-adm!adm!rbj@cmr.icst.nbs.gov From: rbj@cmr.icst.nbs.gov (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: Re: lp/lpr interface Message-ID: <16370@brl-adm.ARPA> Date: 1 Jul 88 22:42:53 GMT Sender: news@brl-adm.ARPA Lines: 51 ? In article <16196@brl-adm.ARPA> you write: ? >? From: "David R. Linn" ? > ? >Are you sure that address will work? ? > ? >? Before I reinvent the wheel, can anyone provide pointers on interfacing ? >? lpr- and lp-based spooling? I have a network with both SUNOS/BSD machines ? >? and HP-UX/SYSV machines and would like to be able to print from any machine ? >? to any printer; that is, I would like to use lp(1) on an HP-UX machine to ? >? print across our Ethernet to an Apple LaserWriter on a Sun machine and I ? >? would also like to use lpr(1) to print from a Sun to a HPIB printer on ? >? an HP machine. ? > ? >Well, with BSD, at least you have source. ? ? I don't understand this comment. Please amplify? Exactly what I said. He might need the source to port to a machine that has internet support, but not lpr/lpd, which I can't imagine, but might conceivably exist. For example, AIX does have some internet support, but since it is System V based, might use lp rather than lpr. ? >Port lpr/lpd to the machines ? >that don't have it, and use the filter in lp to call lpr. Then pray. ? >I am assuming that all the networking code will work everywhere. ? ? We set up our system V machines to do uux to a "print server", a ? BSD machine that knew how to get to all the printers. It works ? fine. No porting required. Good move. Since I intent to remain adamantly ignorant of uucp (I suppose I should modify my opinions a bit, but am spoiled by the internet), I didn't even think of that. ? I have one machine that runs BSD and SYSV concurrently. It has ? both lp and lpr, but I didn't want both deamons talking to the ? same device at the same time. Hacking the interface script in ? the lp command to pipe through lpr solved the problem. Isn't that what I said above? ? Ron (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 The opinions expressed are solely my own and do not reflect NBS policy or agreement Careful with that VAX Eugene! .. I think I'll KILL myself by leaping out of this 14th STOREY WINDOW while reading ERICA JONG'S poetry!!