aboutsummaryrefslogtreecommitdiff
path: root/lp/daemon/psdev
blob: 895db8a3bcf9ec4b1f362fcf431a9ff8f6cc47d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/local/plan9/bin/rc

fn local {
	psdownload -f -H$PLAN9/postscript/font -mfontmap -plw+ \
		< $LPDEST/$FILE(1) >$OUTDEV >[2]$PRINTLOG
}
fn remote {
	{
		echo -d$LPDEST -pnoproc -M$SCHEDLINE(1) -u$SCHEDLINE(2)
		cat $LPDEST/$FILE
		sleep 5
	} | lpsend.rc $DEST_HOST
}
generic local remote ''