Plan 9 from User Space's /usr/local/plan9/lp/stat/lpd

#!/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

Space Glenda

Copyright © 2005 Lucent Technologies, Russ Cox, MIT.
See license for details.