aboutsummaryrefslogtreecommitdiff
path: root/lp/stat/lpd
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-09-17 20:49:33 +0000
committerrsc <devnull@localhost>2006-09-17 20:49:33 +0000
commitf3435ec58b8e5e2b403ba5040392495ef9727233 (patch)
tree0289b7855ec6210bd29a9809a076cef54ed6a744 /lp/stat/lpd
parent999a81d3acb226f1dd9678cf56c20a7674bb6801 (diff)
downloadplan9port-f3435ec58b8e5e2b403ba5040392495ef9727233.tar.gz
plan9port-f3435ec58b8e5e2b403ba5040392495ef9727233.tar.bz2
plan9port-f3435ec58b8e5e2b403ba5040392495ef9727233.zip
stat
Diffstat (limited to 'lp/stat/lpd')
-rwxr-xr-xlp/stat/lpd11
1 files changed, 11 insertions, 0 deletions
diff --git a/lp/stat/lpd b/lp/stat/lpd
new file mode 100755
index 00000000..3bea23e1
--- /dev/null
+++ b/lp/stat/lpd
@@ -0,0 +1,11 @@
+#!/usr/local/plan9/bin/rc
+
+if (! ~ $DEBUG '') flag x +
+
+echo transmission log:
+if (test -r $LPLIB/log/$LPDEST^.st) {
+ tail -3 $LPLIB/log/$LPDEST^.st
+ echo
+}
+echo printer queue:
+lpdsend -q -d$OUTDEV $DEST_HOST