2004/08/12 foomatic,magicfilter

Print filters. Whether it's CUPS, LPRng or plain old LPD, you often need a filter in between application data and the physical printer. In olden times, you'd use specific filters for specific purposes, but the trend now is to Swiss army knife, do everything filters that consult config files or databases to determine their actions (which is often just calling Ghostscript with appropriate options).
http://www.pell.portland.or.us/~orc/Code/magicfilter/
http://www.linuxprinting.org/foomatic.html.

With some older lpd's (SCO's, for example), you couldn't specify a filter. We'd get around that by fronting with a Sys V printer where you could use a filter - an "interface script" that would end by sending to the lpd printer. More modern lpd's let you specify a "if=" line in printcap.


Hate these ads?

You can use your own filter scripts with CUPS, too, but you have to work within a "ppd" file. You just create the printer normally, but then change things. Your contribution would be a line added to the .ppd file that might look like:



*cupsFilter: "text/plain 0 MyFilter"


You'd create MyFilter in /usr/lib/cups/filter/ and the ppd file would be /etc/cups/ppd/queue-name.ppd



Comments /Words/2004_08_12.html


Add your comments

M3IP inc.

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
1310218 1,232

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

pavatar.jpg
More:




Unix/Linux Consultants

Your ad here - $24.00 yearly!

http://www.loch-raven.com/Loch Raven provides consulting services for Linux, UNIX, SCO OpenServer, SCO UnixWare, AIX, Solaris and FreeBSD systems. Services include: System administration, Backup and Disaster Recovery planning and implementation, Custom Shell Scripting, System Recovery, Remote Administration, Secure Remote Access configuration, Troubleshooting, System Migration and Windows/Linux/Unix integration with Samba. Loch Raven also provides web site hosting, solutions, and consulting along with Joomla CMS.


http://www.m3ipinc.com Security, firewalls, ids, audits, vulnerability assesments, BS7799, HIPAA, GLB, incident handling


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.









Change Congress


Related Posts