solaris print filter

2007-12-25 10:09:00

>Anyone have any experience setting up a print filter on Solaris 2.6

>for a remote printer? Can this in fact be done or must the printer

>be local in order to associate a filter with it?

>

>I created a script which does nothing more than cat some postscript

>code then cat - the file to be printed. I can

> cat file.ps|/etc/lp/filters/mfilter|lp -dsomeprinter so the filter works.

>I then register the filter (create /etc/lp/fd/myfilter.fd

>Contents are:

> Input types: any

> Output types: myfilter

> Printer types: any

> Filter type: fast

> Command: /etc/lp/filters/myfilter

>cd /usr/share/lib/terminfo/P; infocmp PS>/tmp/myfilter, edit it to look like:

> # Reconstructed via infocmp from file: /usr/share/lib/terminfo/P/PS

> myfilter|Fake PostScript entry,

> cpi=null, csnm=^D, lpi=null, scs=^D, slines=^D, u9=^D,

>

>run tic:

> tic /tmp/myfilter

>

>At this point, I can either create the printer with admintool (pointing to

>the remote printer as the server) and then

> lpadmin -pnewprinter -Tmyfilter -Iany

>

> or

>rather than make it with admintool, make it with lpadmin:

> lpadmin -pnewprinter -o protocol=bsd,dest=111.222.111.222 -Tmyfilter -I any

> -v /dev/null -i /etc/lp/filters/myfilter

>

>The former will complain that I'm missing either -v or -U. The latter will

>make the printer appear local rather than remote but have the filter

>associated with it.

>

>Ideas?

Thanks to

Mark Hargrave <hargrme@wisdom.maf.nasa.gov> and

Pat Hooper <phooper@nebs.com>

After much banging I figured a hack.

I don't need to register any filters.

Create the que:

lpadmin -pwhatever -o protocol=bsd,dest=123.222.111.123 -T PS -I postscript \

  -v /dev/null -i /usr/lib/spool/lp/model/netstandard

enable whatever

accept whatver

The netstandard template is copied to /etc/lp/interfaces and renamed.

I editted/hacked this hardcoding my filter into the case statement for $TERM.

 =-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-=

 David Stern TSI TelSys

 Manager, Information Systems 410-872-3906

Comments

Got something to say?

You must be logged in to post a comment.