|
NAMEmagicfilter - automatic configurable printer filterSYNOPSISmagicfilter config-file [-c] [-n user] [-h host] [other-options]DESCRIPTIONmagicfilter is an extensible and customizable automatic printer filter. It selects an appropriate conversion technique for the input data by seeking for magic numbers, and then utilizing the appropriate conversion utility.magicfilter is primarily intended for use as the ``input filter'' by the lpd print spooler. The options accepted by magicfilter are exactly the ones passed to the input filter by lpd. OPTIONSTypically magicfilter will be invoked by lpd and hence provided the right options automatically. This list is included for reference only.
USING LPDTo run magicfilter from lpd it should be entered as one of the filters in the /etc/printcap file. Typically, it will be the input filter (if). Since most version of lpd do not accept arguments entered as part of the filter name, typically the filter name entered into the /etc/printcap file will simply be the name of the configuration file, which is set executable and starts with the line:#! /usr/local/bin/magicfilter Most UNIX kernels will then be able to treat the configuration file itself as if it was the actual program. For systems which do not support the ``#!-hack'', the filter set in the if entry should point to magicfilter directly, and the accounting file (af) entry should point to the configuration file. This, however, is a less general, and hence less desirable solution. BUGSMagicfilter has been extensively modified for the 2.0 release, and has very little in common with the old 1.2 magicfilter. The config-file format has changed pretty drastically, and old config files will not work anymore.Currently, there is no protection against the pipe or fpipe facilities going into an infinite loop. AUTHORH. Peter Anvin <hpa@zytor.com>, David Parsons <orc@pell.chi.il.us>SEE ALSOprintcap(5), lpr(8), dvips(1), grog(1), gs(1), gzip(1), troff(1).
Visit the GSP FreeBSD Man Page Interface. |