[Mageia-dev] What to use instead of /dev/usb/lp*

Dan Fandrich dan at coneharvesters.com
Wed Jul 25 22:59:07 CEST 2012


On Wed, Jul 25, 2012 at 10:26:13AM -0700, Jeff Robins wrote:
> I'll give that a try.  Is there a better/newer way to access the
> device?  I'd like to update
> and fix the program if possible.

Using cups would be the best. If the program is currently opening the lp
device directly, then it might be as simple as replacing the call to
fopen("/dev/lp","w") with popen("lp","w"). That will pipe the data to
the "lp" program which will spool it to the printer through CUPS.

>>> Dan


More information about the Mageia-dev mailing list