summaryrefslogtreecommitdiff
path: root/sys/lib/lp/stat/xerox-N32
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 16:53:33 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 16:53:33 +0300
commite463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (patch)
treed5e9f57c28f026cb21de3bd77cc10cd7f64aaa85 /sys/lib/lp/stat/xerox-N32
parentb41b9034225ab3e49980d9de55c141011b6383b0 (diff)
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/lp/stat/xerox-N32')
-rwxr-xr-xsys/lib/lp/stat/xerox-N3230
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/lib/lp/stat/xerox-N32 b/sys/lib/lp/stat/xerox-N32
new file mode 100755
index 000000000..f2855ab4a
--- /dev/null
+++ b/sys/lib/lp/stat/xerox-N32
@@ -0,0 +1,30 @@
+#!/bin/rc
+if (! ~ $DEBUG '') flag x +
+
+if (~ $THIS_HOST $DEST_HOST) {
+ if (test -f $LPLIB/log/$LPDEST^.st) {
+ echo job transmission status:
+ tail -3 $LPLIB/log/$LPDEST^.st
+ }
+ cd $LPSPOOL
+ if (test -d $LPDEST) {
+ once=''
+ for (i in `{bind -b $LPLIB/sched /bin;$SCHED $LPDEST}) {
+ if (~ $once '') {
+ echo
+ echo queue on $THIS_HOST:
+ echo 'job user try size'
+ once=1
+ }
+ STATLINE=`{cat $LPDEST/$i^id}
+ LSLINE=`{ls -l $LPDEST/$i}
+ echo $STATLINE(1)^$STATLINE(3)' '$STATLINE(2)' '$STATLINE(4)' '$LSLINE(6)
+ }
+ }
+ echo
+ echo 'checking the printers queue (type DELETE to abort):'
+ /$cputype/bin/aux/lpdsend -dRAW -q $OUTDEV
+}
+if not {
+ { echo -d$LPDEST -q; sleep 5 } | lpsend.rc $DEST_HOST
+}