I have a Lexmark S450 printer connective via WiFi. Lexmark's proprietary drivers work OK for printing, and their included GUI configuration application displays the printer's ink levels. I would like to write a little script that connects to the printer a few times per day and reads its ink levels. The proprietary drivers work through CUPS, but they don't appear to support cups-command files:
Code:
$ cat reportlevels.cups
#CUPS-COMMAND
ReportLevels
$ lpr reportlevels.cups
lpr: Unsupported document-format "application/vnd.cups-command".
I tried grabbing the traffic to and from the printer during an ink level check with wireshark, but everything I saw in there was binary. Any ideas?