From 6174642093bdcef4116ae78dbdf4f2e608494258 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 31 Aug 2005 02:15:26 +0000 Subject: Initial lp. --- lp/spooler/lpdspool | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 lp/spooler/lpdspool (limited to 'lp/spooler/lpdspool') diff --git a/lp/spooler/lpdspool b/lp/spooler/lpdspool new file mode 100755 index 00000000..3f14eaed --- /dev/null +++ b/lp/spooler/lpdspool @@ -0,0 +1,15 @@ +#!/usr/local/plan9/bin/rc + +if (! ~ $DEBUG '') flag x + + +if (~ $#* 0) *='' + +for (j in $*) { + if (~ $j '' || test -f $j) { + lpinput $j lpsub process $LPPROC | + lpdsend -d$OUTDEV -tf -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st + } + if not { + echo $j cannot be opened >[1=2] + } +} -- cgit v1.2.3