Files
mastering-unix-ss/chapter25/enable_AIX_classic.ksh
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

25 lines
472 B
Bash
Executable File

#!/bin/ksh
#
# SCRIPT: enable_AIX_classic.ksh
#
# AUTHOR: Randy Michael
# DATE: 03/14/2007
# REV: 1.1.P
#
# PLATFORM: AIX Only
#
# PURPOSE: This script is used to enable print queues on AIX systems.
#
# REV LIST:
#
# set -x # Uncomment to debug this script
# set -n # Uncomment to check syntax without any execution
#
for Q in $( enq -AW | tail +3 | grep DOWN | awk '{print $1}')
do
enable $Q
(( $? == 0 )) || echo "\n$Q print queue FAILED to enable.\n"
done