[cups.general] lpinfo -v doesnt shows my new backend

Michael R Sweet msweet at apple.com
Mon Aug 4 09:05:15 PDT 2008


shermin wrote:
> Hi,
> I checked the log output and it shows
>      I [04/Aug/2008:11:26:59 +0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=27920)
> I [04/Aug/2008:11:27:02 +0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=27921)
> I [04/Aug/2008:11:27:02 +0400] Started "/usr/lib/cups/daemon/cups-deviced" (pid=27922)
> E [04/Aug/2008:11:27:02 +0400] [cups-deviced] PID 27933 (card_usb) crashed on signal 11!
> What it means????

Signal 11 is "segmentation fault", which usually means you tried to
dereference a NULL pointer.

> Also in the usb.c file if i have the command line arguments is 1,it just list the uri and return CUPS_BACKEND_OK.I am always getting arguments as 1 not 6 or 7.What could be the reason.?

You'll get argc == 1 for discovery, 6 or 7 for printing.

 > How will we get the 6 or 7 command line arguments??

When printing, you'll get the complete command-line - 6 when using a
print driver and 7 when doing raw printing.

> Also what i understood is that after writing my custom backend it should display in the cups web page while adding the printer.Is that correct right?

Yes, as long as your backend writes one or more valid information
lines, as documented in "man backend".

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list