initial commit
This commit is contained in:
24
chapter25/enable_AIX_classic.ksh
Executable file
24
chapter25/enable_AIX_classic.ksh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user