From: Jesper Frank Nemholt <jfn@dassic.com>
Subject: Re: Printer filter
Date: 2000/01/10 [thread overview]
Message-ID: <387A4580.1967B38C@dassic.com> (raw)
In-Reply-To: 38735283.651B2E84@zk3.dec.com
LaBonte wrote:
>
> If the printer has a network interface you can probably use tcp/ip
> printing, provided in V4.0a, eliminating the need for two queues.
> A tcp/ip print queue looks similar to a parallel port queue with the
> exception of LP. For example:
>
> :lp=@printer.name.com/port_9100:\
>
> Port_9100 is defined in the /etc/services file. ie:
>
> port_9100 9100/tcp
>
> FYI, 9100 is the port/socket number used for HP and Lexmark printers.
>
> Using this setup you have a direct network connection to the printer with
> full print filter functionality. Printcap example:
Should I understand this as filtering _only_ works when defining a
remote printer as a TCP/IP printer with portnumber ?
I have tried filtering on remote printers, but I don't remember if I've
tried with TCP/IP printers, so I'll try that again.
In your example you use both a if and a of filter... I've seen this in
examples too, but I'm not sure I understand why... can you explain why I
need to define a filter both as if and of ?
My printers look like this right now :
vojens1|VOJENS1:\
:lf=/usr/adm/lpd/vojens1.err:\
:lp=/dev/null:\
:sh:\
:sd=/usr/spool/lpd/vojens1:\
:if=/usr/local/bin/printfilter.sh:\
:af=vojens1_filtreret.dde1070:
vojens1_filtreret:\
:sh:\
:lf=/usr/adm/lpd/vojens1_filtreret.err:\
:ct=tcp:\
:lp=@vojens1/dde_nct2_2070:\
:sd=/usr/spool/lpd/vojens1_filtreret:
I use the af part to tell the script what printer (stuff before the dot)
to print to when the data is filtered, and what kind of printer (stuff
after the dot) it is, so the filter (/usr/local/bin/printfilter.sh) know
what to do.
The printfilter is a custom written script that does alot of stuff to
the data running thru.
I'd _really_ like to get rid of the dummy queue.
l8r/Jspr
next prev parent reply other threads:[~2000-01-10 5:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-04 5:00 Printer filter Mustafa Demirbilek
2000-01-04 5:00 ` Jesper Frank Nemholt
2000-01-05 5:00 ` Sue Gleeson
2000-01-10 5:00 ` Forskningsing. vid Maskinsektionens DataCentral
2000-01-05 5:00 ` LaBonte
2000-01-10 5:00 ` Jesper Frank Nemholt [this message]
2000-01-11 5:00 ` LaBonte
2000-01-05 5:00 ` LaBonte
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox