diff options
author | rsc <devnull@localhost> | 2005-08-31 02:15:26 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-08-31 02:15:26 +0000 |
commit | 6174642093bdcef4116ae78dbdf4f2e608494258 (patch) | |
tree | b916d25347295ee15b35434b92011b31fd76862c /lp/daemon/psdev | |
parent | 9f1d53a09bdd8f99e9f81a344c7fa6b5161e1359 (diff) | |
download | plan9port-6174642093bdcef4116ae78dbdf4f2e608494258.tar.gz plan9port-6174642093bdcef4116ae78dbdf4f2e608494258.tar.bz2 plan9port-6174642093bdcef4116ae78dbdf4f2e608494258.zip |
Initial lp.
Diffstat (limited to 'lp/daemon/psdev')
-rwxr-xr-x | lp/daemon/psdev | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lp/daemon/psdev b/lp/daemon/psdev new file mode 100755 index 00000000..895db8a3 --- /dev/null +++ b/lp/daemon/psdev @@ -0,0 +1,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 '' |