How to read print status file in embedded linux
Hi All,
I am writing a C code to print a .bmp file from my ARM based embedded system. I want to continuously monitor printer queue and its status. I am having monta vista linux and its having cups support.
Which file i should read for continuous status monitoring for printer status? (like.. queue has job No abc, queue is empty, printer is ready). I know the lpc and lpq command can serve the same but i don't want to read any command's o/p and do string operation on that. I want to read status file directly to avoid such string operations.
Regards,
Chirag Shah
|