ref: a1f8c46a3822674e4439e6fd9d5bf89608b6ba08
dir: /sys/lib/lp/spooler/nt/
#!/bin/rc
if (! ~ $DEBUG '') flag x +
if (~ $#* 0) *='/fd/0'
for (j in $*) {
if (~ $j '/fd/0' || test -f $j) {
@{bind -b $LPLIB/process /bin; $LPPROC} < $j | /$cputype/bin/aux/lpdsend -d$OUTDEV -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st
}
if not {
echo $j cannot be opened >[1=2]
}
}