Job NOT being filtered
Helge Blischke
h.blischke at srz.de
Wed May 23 06:54:23 PDT 2007
Stefan Adams wrote:
> It's possible to filter a job of text sent from the command line, right?
>
> Like this:
>
> # echo hi | lpr
>
> # cat /etc/cups/*.{types,convs}
> text/hi printable(0,1024) + string(0,hi)
> text/hi application/vnd.cups-postscript 3 skeleton
>
> # ls -l /usr/lib/cups/filter/skeleton
> -rwxr-xr-x 1 root root 3522 May 22 20:01 /usr/lib/cups/filter/skeleton*
>
> # cat /usr/lib/cups/filter/skeleton
> #!/usr/bin/perl
> $|=1;
> open TMP, ">/tmp/skeleton.tmp";
> print TMP qx{date};
> close TMP;
> exit 0;
> [...]
What springs to my eyes at the first glance is that your
filter does not follow the filter calling conventions.
Helge
--
Helge Blischke
Softwareentwicklung
H.Blischke at acm.org
More information about the cups
mailing list