I think maybe this is a more appropriate group
Hello. We have an aix 5x server which is a has a print server running on it. The
printers seem to *up regularly on big print jobs, which shuts down the printer
until I enter the command to restart it. To see which printers are down, I enter:
"enq -qs -A"
and it lists all printers and tells me which ones are down. The output looks like
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
To start a printer:
Where printer x is the name of the printer.
I have a few questions. How can I expand the output of the the "enq -qs -A" command
to see the fullnames of the printers (they are truncated to 7 characters), and is
it possible for create a script that would load the names of the printers into an
array and restart the ones that are down?
enq -qs -A (output to an array)
loop through array
( if status = 'down' then
How do I tell korn what column the status is in?
how do I load variable names for the printers?
I don't know if this can be done in korn or not. This machine does not have the bash
or bourne shell.
Thank you for looking at my problem