Reader small image

You're reading from  CUPS Administrative Guide

Product typeBook
Published inSep 2008
Publisher
ISBN-139781847192585
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Ankur Shah
Ankur Shah
author image
Ankur Shah

Ankur Shah has been working with Linux/AIX for last 4 years as a System Administrator. His previous assignment was with Packt Publishing, where he worked as System Administrator and also started implementing CUPS. He completed his graduation in Computer Engineering from Nagpur University, India. He is currently working as a SAP Basis Administrator and also started working on Governance Risk and Compliance for access Control. He is also interested in Oracle Database Administration and Security. He is the biggest fan of Kajol (a Bollywood actress) and dedicates this book to her. The day her movie releases is a day of celebration for him and he only parties once a year - 5th August - that's Kajol's birthday. It goes without saying that he watches all her movies several times - often dragging his friends and family to participate in his madness.
Read more about Ankur Shah

Right arrow

Overview of Filter in CUPS


In mime.convs, many combinations can be used besides those mentioned earlier. You can also plug in your own filter. However, it needs to be compiled as per the CUPS requirements, and correct lines should be specified in the mime.types and mime.convs files.

While creating our own filter, let's assume that we have the filenames stdin as input and stdout as output. These files will use the following arguments:

  • Printer: It defines the name of the printer queue that is normally the name of the filter being run.

  • Job: The job ID in numeric value stands for the job being printed.

  • User: It uses the string from the originating-user-name attribute.

  • Title:It takes the string from the job-name attribute.

  • Copies:It uses the numeric value from the number-copies attribute.

  • Options: It uses the job options.

  • Filename: This argument is optional. If we do not specify the print request file, it takes and filters data through stdin. In most cases, it is easy to write a simple wrapper script...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
CUPS Administrative Guide
Published in: Sep 2008Publisher: ISBN-13: 9781847192585

Author (1)

author image
Ankur Shah

Ankur Shah has been working with Linux/AIX for last 4 years as a System Administrator. His previous assignment was with Packt Publishing, where he worked as System Administrator and also started implementing CUPS. He completed his graduation in Computer Engineering from Nagpur University, India. He is currently working as a SAP Basis Administrator and also started working on Governance Risk and Compliance for access Control. He is also interested in Oracle Database Administration and Security. He is the biggest fan of Kajol (a Bollywood actress) and dedicates this book to her. The day her movie releases is a day of celebration for him and he only parties once a year - 5th August - that's Kajol's birthday. It goes without saying that he watches all her movies several times - often dragging his friends and family to participate in his madness.
Read more about Ankur Shah