Andreas Klemm on Tue, 16 Jan 2001 23:15:36 +0100 (CET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: "-C class" does not work ????


Upgrade FreeBSD to the latest 4.2 STABLE.
Then you don't need my patch anymore, which hacks lpr.c,
so that you can use -C option without having to define
a banner page in printcap.

	Andreas ///

On Tue, Jan 16, 2001 at 07:09:25PM +0100, Jose M. Alcaide wrote:
> Hello,
> 
> I have just installed the apsfilter-6.0.0 port on my system running
> FreeBSD 4.2. I ran SETUP for adding a PostScript printer and everything
> was OK.
> 
> However, I cannot pass any class options to apsfilter with the lpr(1)'s
> "-C class" option. I am pretty sure that lpr does not pass the class
> option to the input filter. The printcap(5) manpage states clearly that
> the input filter is called with these arguments:
> 
>   if [-c] -wwidth -llength -iindent -n login -h host acct-file
> 
> In order to test this, I inserted a line "echo $*" at the start of
> the apsfilter script, and this is the result:
> 
>   -w132 -l66 -i0 -n <user> -h <host> /var/spool/lpd/scr/acct
> 
> It is always the same; using the "-C class" option in the lpr(1)
> command line does not have any effect.
> 
> Am I doing something wrong? I will be thankful for any tip, idea,
> or explanation ;-)
> 
> -- JMA
> ****** Jose M. Alcaide  //  jose@we.lc.ehu.es  //  jmas@FreeBSD.org ******
> ** "Beware of Programmers who carry screwdrivers" --  Leonard Brandwein **

	Andreas ///

-- 
Andreas Klemm
Apsfilter Homepage                  http://www.apsfilter.org
Support over mailing-lists (only!)  http://www.apsfilter.org/support
Mailing-list archive                http://www.apsfilter.org/Lists-Archives

PGP signature