logo       

Re: Re: device ID string.: msg#00033

printing.cups.devel

Subject: Re: Re: device ID string.


Can I get some help as to how to recompile CUPS and know where the stderr from
the backend/usb.c is logged.


Mike Sweet wrote:
> skejariwal-eMvYNY28iGNBDgjK7y7TUQ@xxxxxxxxxxxxxxxx wrote:
> > Hi everyone,
> >
> > I get the device ID string from the HP Inkjet printer through my
> C
> > program and it works fine. However, if the printer is in use, the
> C
> > program fails to open the device ie /dev/usb/lp[value] since it is
> > already opened by the application using the printer.
> >
> > I was wondering if the CUPS code could be modified somehow to report
> > device ID string continuously from the point when a job is sent out
> > for printing to when the job is complete. Please let me know if there
> > is a way this can be done.
>
> You could modify the CUPS code to do this, however it would not be
> a reliable way to collect the device ID.  What you *really* want to
> do is poll the port at regular intervals and cache/store the device
> ID in a common file/shared memory segment/etc., or provide your own
> backend which communicates with your software...
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products                 
> mike-B9D8k9nSxTHQT0dZR+AlfA@xxxxxxxxxxxxxxxx
> Printing Software for UNIX                       http://www.easysw.com
>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise