#!/usr/bin/ksh # QueueStatus.ksh # Checks for down print queues. # And, sends a mail message if found. # - Jim if [[ "`enq -A | grep DOWN`" != "" ]]; then enq -A | grep DOWN | mail -s "Queue Down on `hostname`" none@none.com fi