mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
15 lines
295 B
Bash
Executable file
15 lines
295 B
Bash
Executable file
#!/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]
|
|
}
|
|
}
|