Print a Banner for User

Helge Blischke h.blischke at acm.org
Mon Oct 18 13:40:24 PDT 2010


Christian wrote:

> Hello together,
> 
>> What version of cups are you using, and which (if any) special filter did
>> you already implement?
> 
> oh, sorry i don't wrote this.
> 
> we have the rhel 5 version 1.3.7 for cups.
> 
> the filter for the output is a script what grep a postscript line and
> insert a Output Bin line in the data stream. The Printer print out in the
> correct tray from data stream.
> 
> For my problem i have superior this options:
> 
> ---- code cut ----
> lp -U$USERNAME -o job-sheet=test_banner | cat $INPUT
> ---- code cut ----
> i don't know how it works
> i donĀ“t test this yet, at the next morning i will test...
> 
> ---
> 
> i have test this:
> 
> if ( $BANNER =~ "SEP" ) {
> 
>               system (`lp -U$USERNAME -o job-sheet=test_banner -d$PRINTER
>               $FILE`);
> }
> else {
> 
>                system (`lp -U$USERNAME -o -d$PRINTER $FILE`);
> }
> 
> it works but i have a direkt input....
> 
> Thanks for the answer helge!
> king regards

I'm not sure if I did fully understand what you want to achieve. As far as I 
got it, both the output bin and "print banner or not" shall be determined by 
the user name only?
I think the banner printing can be achieved by a specially tweaked banner 
page (written in PostScript, of course), but the selection of the output bin 
could be tricky, as different printers call for different code to select the 
output bin.

Helge

PS: if it is easier for you, mail me directly in German to 
h dot blischke at acm dot org






More information about the cups mailing list