nt 313 B

1234567891011121314
  1. #!/bin/rc
  2. if (! ~ $DEBUG '') flag x +
  3. if (~ $#* 0) *='/fd/0'
  4. for (j in $*) {
  5. if (~ $j '/fd/0' || test -f $j) {
  6. @{bind -b $LPLIB/process /bin; $LPPROC} < $j | /$cputype/bin/aux/lpdsend -d$OUTDEV -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st
  7. }
  8. if not {
  9. echo $j cannot be opened >[1=2]
  10. }
  11. }