[cups.general] hostname at the top of the page

Jerome Alet alet at librelogiciel.com
Mon Mar 20 22:46:19 PST 2006


On Tue, Mar 21, 2006 at 01:26:43AM -0500, Willi Eggeling wrote:
> 
> Is there a possibility to add the hostname or IP of the sender to 
> the top of the page? I'm using tea4cups if that's helpful... 

It could : you can define a "filter" directive in tea4cups.conf,
which will allow you to launch any command of your choice to
process the final datas received by Tea4CUPS just before
the job is sent to the printer.

Your command will have to read the job's datas from it's standard 
input, and write the result (what will be printed) to its standard 
output. 

Then the difficult part is to write a command which would :

  1 - extract the client hostname from CUPS.
  
  2 - Overlays it on the actual document being printed.
  
1 is necessary, because the TEACLIENTHOST environment variable is  
not yet set when Tea4CUPS' filter is executed. This will be fixed
if possible in a future release though.

2 will probably be doable "easily" (?) only if the job's datas
are PostScript.

Not sure if CUPS itself can do such a thing, sorry.

bye

Jerome Alet





More information about the cups mailing list