File backend to replace existing pin printers

Kurt Pfeifle kurt.pfeifle at infotec.com
Fri Sep 19 00:52:36 PDT 2008


> 3. Then from http://osdir.com/ml/printing.cups.devel/2004-10/msg00007.html
> created /usr/lib/cups/backend/filewriter
>
> #!/bin/bash
> # (c) Kurt Pfeifle, Danka Deutschland GmbH

[...]

> 4. and created a printer named filewriter
>  lpadmin -p fileprinter -v filewrite:/tmp/my_print_testfile.prn -E

If your backend filter name is "filewriter", then the device URI (used in the lpadmin command) needs also to use "filewriter". You used "filewrite" (missing "r").

Keep in mind that the script is just a very simple sample to show how the thing basically works.

In a security-sensitive environment you may want to change a few things (most important: add some input validation, change the logfile path, ....)




More information about the cups mailing list