Initial lp.
This commit is contained in:
parent
9f1d53a09b
commit
6174642093
30 changed files with 1528 additions and 0 deletions
0
lp/bin/.cvsignore
Normal file
0
lp/bin/.cvsignore
Normal file
3
lp/bin/UNLOCK
Executable file
3
lp/bin/UNLOCK
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/local/plan9/bin/rc
|
||||
|
||||
>$1/LOCK && rm -f $1/LOCK
|
||||
18
lp/bin/lpsend.rc
Executable file
18
lp/bin/lpsend.rc
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/local/plan9/bin/rc
|
||||
if (! ~ $DEBUG '') { flag x + }
|
||||
if (test -e /net/tcp/clone) {
|
||||
dialstring=`{ndb/query sys $1 dom}
|
||||
network=tcp
|
||||
if (~ $#dialstring 0 || ! ~ $dialstring '') {
|
||||
dialstring=$1
|
||||
}
|
||||
if(lpsend $network^!^$dialstring^!printer) exit ''
|
||||
rv='tcp failed'
|
||||
}
|
||||
if not rv='no tcp'
|
||||
|
||||
|
||||
if (! ~ $dialstring '')
|
||||
exit 'lpsend: no dialstring'
|
||||
if not
|
||||
exit 'lpsend: '^$rv
|
||||
Loading…
Add table
Add a link
Reference in a new issue