Posts

Showing posts with the label cups

Custom Backend not recognized

Custom Backend not recognized I am trying to create a custom backend. I followed instructions to create a backend "for debbuging" : a "tofile" backend. I registered it in /usr/lib/cups/backend and restarted the service. But when I try : lpinfo -v It doesn't show, and in my error_logs I Have : [cups-deviced] PID 8330 (tofile) stopped with status 8! Here aree the permission : -rwxr-xr-x 1 root root 715 juil. 1 10:38 tofile I found a topic about the problem, I have not this error for the same reason (No trailing whitespace in script, ...). When I use : sudo file /usr/lib/cups/backend/tofile /usr/lib/cups/backend/tofile: ASCII text I also heard about the cupsd.conf using file-device, but it is marked as deprecated in the documentation... Obviously, the script is the same as in the tutorial : #! /bin/bash # Have debug info in /var/log/cups/error_log: set -x # Output "device discovery" information on stdout: if test "$#" = "0" ...