Filter question
Michael Goffioul
goffioul at imec.be
Thu Jun 5 17:20:16 CEST 2003
> I had the idea to use a printer filter to upload the firmware before
> every print job. Unfortunately I don't have enough knowledge to make it
> work. The command I want to put in front of every print job is
>
> cat firmware.bin > /dev/usb/lp0
Under CUPS, one possibility would be to replace the usb backend
program with a wrapper of your own. Say you move the original backend
(located in /usr/lib/cups/backend/usb) to usb.orig, then you can
use a script like:
#!/bin/sh
cat firmware.bin > /dev/usb/lp0
exec /usr/lib/cups/backend/usb.orig $@
Place it into /usr/lib/cups/backend/usb.
Michael.
--
------------------------------------------------------------------
Michael Goffioul IMEC-DESICS-MIRA
e-mail: goffioul at imec.be (Mixed-Signal and RF Applications)
Tel: +32/16/28-8510 Kapeldreef, 75
Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
More information about the kde-print
mailing list