lp/lpr interface

Root Boy Jim rbj at cmr.icst.nbs.gov
Sat Jul 2 08:42:53 AEST 1988


? In article <16196 at brl-adm.ARPA> you write:
? >? From: "David R. Linn" <drl%backup at uunet.uu.net>
? >
? >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	<rbj at icst-cmr.arpa>
	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!!



More information about the Comp.unix.wizards mailing list