Initial lp.
This commit is contained in:
parent
9f1d53a09b
commit
6174642093
30 changed files with 1528 additions and 0 deletions
15
lp/spooler/lpdspool
Executable file
15
lp/spooler/lpdspool
Executable file
|
|
@ -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]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue