Subject: Re: bin/20525: lpr cannot suppres headers
To: None <peterih@vip.cybercity.dk>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: netbsd-bugs
Date: 02/28/2003 09:41:03
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Feb 28, 2003 at 05:56:53AM -0800, peterih@vip.cybercity.dk wrote:
> When printing with lpr (/usr/bin/lpr), the 'sh' command in /etc/printcap fails to suppress the header page. The result is that an extra page is printed every time you print.
> The lpd setup is unmodified from the default install.
> >How-To-Repeat:
> My printcap:
> 
> lp|ljet4;r=300x300;q=medium;c=gray;p=a4;m=auto:\
>     :sh:\

You're experiencing buggy HP JetDirect hardware, not buggy NetBSD
software.

If you talk lpr to an HP, you get that crap page. If you don't get
it under Linux, you don't because Linux is speaking (some other,
pseudo-proprietary, protocol) on port 9100. You can do that too if
you use CUPS rather than our built-in lp stuff.

To make your printer stop printing the useless pages, telnet to it
(on port 23), issue a "banner 0" command, then issue a "quit"
command.

Somebody should close this PR. It's not our fault that HP ignores
the standard.

- -- 
gabriel rosenkoetter
gr@eclipsed.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+X3Tk9ehacAz5CRoRAjSrAJ4pnDh/RAtwPX4UqeO+Hd+PQ+SNXACfefnk
pI8r4pC1y4h22EazYOVyNic=
=pevc
-----END PGP SIGNATURE-----