sonmoth
asked on
I need a script that monitors for downed print queues and restarts them.
I am running AIX 5.2.0.7 I need a script that monitors for downed print queues and restarts them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes or:
enq -As | grep "DOWN" | cut -f 1 -d " " | while read que
enq -As | grep "DOWN" | cut -f 1 -d " " | while read que
Which was your error? If scripts were handy you should grant some pts to authors
#/bin/ksh
# Script to monitor and restart print queues
enq -As | grep "DOWN" | awk "{print \$1}" | while read que
do
enable $que > /dev/null 2> /dev/null
done