In Unix, there’s no command that we can use to monitor the printing queue on a defined Unix printer.
What we can do was to write a shell script that will loop in defined seconds to check for the printer status
Unix printer status checking command was lpstat and the command below will loop every 4 seconds to check on the printer status
lpstat <printer name>
The looping of this Unix command will check the Unix printer status, you may modified the command to output the result into a flat file too.
Next» Reset IAS_ADMIN Password In OEM