From 6174642093bdcef4116ae78dbdf4f2e608494258 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 31 Aug 2005 02:15:26 +0000 Subject: Initial lp. --- lp/daemon/psdev | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 lp/daemon/psdev (limited to 'lp/daemon/psdev') 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 '' -- cgit v1.2.3