blob: bb48edd98b5740e01a3613ea0043cd8b5b536e20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/local/plan9/bin/rc
fn local {
GSDEVICE=`{echo $LPCLASS | 9 sed 's/(.*\+)?gs!([^+]*)(\+.*)?/\2/'}
echo gs $GSDEVICE
{
psdownload -f -H$PLAN9/postscript/font -mfontmap -plw+ \
< $LPDEST/$FILE(1) |
gs -sDEVICE'='$GSDEVICE -s'OUTPUTFILE='$OUTDEV -dSAFER -dNOPAUSE -dQUIET -dBATCH -
} >[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 ''
|