shithub: riscv

ref: 57dbe35fb68dda4888fc4c9e8c8d0b3106a8a21c
dir: /sys/lib/lp/daemon/tcppost/

View raw version
#!/bin/rc
# daemon/tcppost
generic 'aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ <$LPDEST/$FILE(1) |
		aux/tcpostio -b$SPEED $OUTDEV >[2]$PRINTLOG' \
	'{cat <{echo -d$LPDEST -pnoproc -M$SCHEDLINE(1) -u$SCHEDLINE(2)} \
		$LPDEST/$FILE(1); sleep 5} | lpsend.rc $DEST_HOST' ''