Unix Printer Monitoring Script
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
while true do lpstat <printer name> sleep 4 done;
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.
Leave a Comment


Recent Comments