[comp.unix.questions] How do you do Remote lp spooling?

dold@mitisft.Convergent.COM (Clarence Dold) (02/06/90)

There are two lp interface styles popular in this house, for SysV remote
printing.  
MACHINE=remote machine name.
TYPE=remote printer name or class
FILE= file to be printed
OPTIONS= options fed to the remote interface

The first uses uucp access:
	uux - -n "$MACHINE"!lp -d$TYPE $OPTIONS < $FILE

The other uses /usr/spool/lp/.rhost equivalenced to mymachine!lp

	rcmd $MACHINE "lp -d$TYPE " <$FILE
rcmd appears to need different command lines, depending on whether [ $OPTIONS ]
	rcmd $MACHINE "lp -d$TYPE -o\"$OPTIONS\"" <$FILE

-- 
---
Clarence A Dold - dold@tsmiti.Convergent.COM            (408) 435-5293
               ...pyramid!ctnews!tsmiti!dold        FAX (408) 435-3105
               P.O.Box 6685, San Jose, CA 95150-6685         MS#10-007