lpstat output auto-refresh
807559Jan 4 2010 — edited Jan 8 2010Hello all!
My first post to the Solaris forum and I'm hoping someone here can assist me. Relatively new to Solaris, so any help is very greatly appreciated!
I normally do an 'lpstat -p' to list the status of our servers printers to see if there are any jobs printing. Doing so normally brings me back to the prompt.
# lpstat -p
printer number_1 now printing number_1-001. enabled since Thu Mar 1 01:06:37 2009. available.
printer number_2 now printing number_2-002. enabled since Thu Mar 1 01:06:37 2009. available.
printer number_3 now printing number_3-003. enabled since Thu Mar 1 01:06:37 2009. available.
#
But is there anyway to auto-display print jobs in the queue as they come in, similar in effect to running a 'tail -f' on a log file that's being written to? That way, I can see print jobs as they come in for any printer that is used?
I tried running 'lpq -Pnumber_1 +10' but I really don't need to see all the jobs in the queue, but rather just any job that is currently printing as in the output of 'lpstat -p'. The lpq command I listed seems to also be limited to one printer at a time, so I'd also like to avoid having to open up individual screens for each printer just to check their running status.
Any thoughts or suggestions?
Thanks so much in advance!
Have a Happy New Year everyone!