Initial lp.

This commit is contained in:
rsc 2005-08-31 02:15:26 +00:00
parent 9f1d53a09b
commit 6174642093
30 changed files with 1528 additions and 0 deletions

15
lp/spooler/lpdspool Executable file
View 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]
}
}