Help... I need to write a script that only show print queues that are down. I have a function that show all the print queues:
function queue_status {
/usr/bin/enq -e "$@" | /usr/bin/awk '
$1 ~ /:$/ { print $0; next}
{ if (substr($0,1,7) != " "
print substr($0,1,24); }'} ; queue_status '-As'
Unfortunately this prints all the queues and doesn't stop at the end of the page. Thanks, Donna
function queue_status {
/usr/bin/enq -e "$@" | /usr/bin/awk '
$1 ~ /:$/ { print $0; next}
{ if (substr($0,1,7) != " "
Unfortunately this prints all the queues and doesn't stop at the end of the page. Thanks, Donna