12841284; V 1; 2009-02-13; reading IEEE 1284 device status
Synopsis and description1284 [--device=path] The program reads device ID string from a printer (currently only linux USB devices are supported), and prints it to standard input along with data length and real data length values. Downloading and compilingSource code and manual pages: Requirements:
gcc -Wall -s -o/usr/local/bin/1284 1284.c -larguments Examples$ 1284 -d /dev/printers/MY4BA3R01M040N ; echo
186 186 MFG:HP;MDL:Deskjet 6500;CMD:MLC,PCL,PML,DW -PCL,DESKJET,DYN;CLS:PRINTER;DES:6540;SN:MY4BA3R01 M040N;S:038000C484001021002c180004cc2880036;J: ;Z:0101,0503afc8014288,0600; $ |
2009-02-25 Matlib |