crafuse
asked on
AIX print queue question.
Experts,
I have a script that runs every minute that brings up any downed print queues. The script has been running for months without any problems. This morning, however, someone wondered if there is the possibility that a print queue brought back up could cause a print job that was interrupted to start all over again. The printer is a network printer. The script follows. AIX 5.3. I'm giving this 500 points because there is some urgency to this matter. Please let me know if any further information is required.
#/bin/ksh
# Script to restart DOWN print queues
enq -As | grep "DOWN" | cut -f 1 -d " " | while read ln
do
enable $ln > /dev/null 2> /dev/null
done
I have a script that runs every minute that brings up any downed print queues. The script has been running for months without any problems. This morning, however, someone wondered if there is the possibility that a print queue brought back up could cause a print job that was interrupted to start all over again. The printer is a network printer. The script follows. AIX 5.3. I'm giving this 500 points because there is some urgency to this matter. Please let me know if any further information is required.
#/bin/ksh
# Script to restart DOWN print queues
enq -As | grep "DOWN" | cut -f 1 -d " " | while read ln
do
enable $ln > /dev/null 2> /dev/null
done
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER