1
0
Fork 0
mirror of https://github.com/9fans/plan9port.git synced 2025-01-30 11:54:57 +00:00
plan9port/lp/daemon/psdev
2005-08-31 02:15:26 +00:00

14 lines
297 B
Bash
Executable file

#!/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 ''