Subject: help with foomatic-filters and native lpd/lpr
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 09/20/2005 11:45:10
I am using NetBSD 2.0.2. I have foomatic-filters-3.0.2 installed.
I am following instructions from
http://www.linuxprinting.org/lpd-doc.html
I am using foomatic-rip tool.
How can I get my native lpr/lpd to pass the options to foomatic-rip?
For example, stock LPD (for Linux?) can use:
lpr -Jdocs
GNUlpr can use:
lpr -o docs
LPRng can use:
lp -Z docs
My /etc/printcap entry is:
brother|Brother HL-5150D duplexing laser printer:\
:lp=/dev/lpa0: \
:af=/usr/local/lib/BR5150_2.ppd: \
if=/usr/pkg/bin/foomatic-rip: \
sd=/var/spool/output/lpd/Brother_HL-5150D: \
:mx#0:sh:
I can print to it.
I want to be able to pass foomatic-rip options to it.
The debugging says:
foomatic-rip version $Revision: 3.43.2.6 $ running...
called with arguments: '-w132', '-l66', '-i0', '-n', 'root', '-h',
'my.host.name', '/usr/local/lib/BR5150_2.ppd'
Parsing PPD file ...
...
Spooler: lpd
Printer:
PPD file: /usr/local/lib/BR5150_2.ppd
Printer model: Brother HL-5150D BR-Script3
Options:
Job title:
File(s) to be printed:
<STDIN>
Anyone know about this?
How can I get the lpr -J option passed to foomatic-rip via lpd?
I have been looking at src/usr.sbin/lpr/lpd/printjob.c but it appears that
the "jobname" is not used that way.
Jeremy C. Reed
technical support & remote administration
http://www.pugetsoundtechnology.com/