Link to home
Start Free TrialLog in
Avatar of sonmoth
sonmothFlag for United States of America

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
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of woolmilkporc
Something like that?

#/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
Avatar of dfke
dfke

Yes or:

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