blob: 3f14eaedbdeaea191140d69e53f53882ab0cc932 [file] [log] [blame]
rsc61746422005-08-31 02:15:26 +00001#!/usr/local/plan9/bin/rc
2
3if (! ~ $DEBUG '') flag x +
4
5if (~ $#* 0) *=''
6
7for (j in $*) {
8 if (~ $j '' || test -f $j) {
9 lpinput $j lpsub process $LPPROC |
10 lpdsend -d$OUTDEV -tf -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st
11 }
12 if not {
13 echo $j cannot be opened >[1=2]
14 }
15}