New RPM 7 Beta is now available — try the new release →

RPM Filter Action-Run a Program

ActionsText printRaw printEmailArchive to diskFilter/programCopy to queueLPR printIP printArchive to FTP

What it does

The term “filter” derives from the Unix operating system, where a “filter” somehow transforms your print job. The RPM filter action runs a local program on the print stream.

We added the Filter FAQ to address various issues and provide our expertise in running programs with RPM Remote Print Manager® (“RPM”).

Purpose

RPM gives you the option to run a program on your print job. What you accomplish with that is up to you.

RPM has supported the filter action since the beginning. The term “filter” comes from the Unix world and experience configuring the Berkeley print server to process a PostScript file into HP printer codes, using Ghostscript, of course. In that situation, there was no PostScript printer available, but that was literally “no problem.”

No matter how capable you make a program, you can always add to it by getting it to run the customer’s software. It’s a hard combination to beat.

Setup

Argument substitution

RPM provides the following tags to embed in the command line. RPM will replace these tags with information from the print job. Note: Use of the tags is limited to jobs received using the LPR/LPD protocol. Most of these tags will be blank if jobs are received using other methods (i.e., telnet printing or drag and drop).

Note: If you need any of these literal strings in your argument list, you can prevent RPM from substituting them by “escaping” the percent sign with another.  For instance, if you have %%C in your argument list, RPM will not substitute it for the control file name and path but will change it to a literal %C.

Further reading