How do you do Remote lp spooling?

Clarence Dold dold at mitisft.Convergent.COM
Tue Feb 6 03:01:34 AEST 1990



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 at 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



More information about the Comp.unix.questions mailing list