Subject: Re: CVS commit: basesrc
To: None <hubertf@netbsd.org>
From: Michael Eriksson <eramore@era-t.ericsson.se>
List: source-changes
Date: 02/03/2000 11:04:41
Hubert Feyrer wrote:
> Module Name: basesrc
> Committed By: hubertf
> Date: Wed Feb 2 16:04:51 UTC 2000
>
> Modified Files:
> basesrc/etc: printcap
>
> Log Message:
> add example for HP Laserjet with JetDirect ethernet card
What you added isn't correct. The HP printers want the sender to
shutdown(2) its sending side, and then wait for the printer to close
the connection when it's done printing. It sends error and status
messages back on the TCP connection. If you just close the connection
when you've sent the file, as lpr does, the printer will abort the
job.
Now, I just hacked together this nice perl script which talks to
JetDirect printers... I'd be happy to send it to anybody that's
interested (it's only about 50 lines).
Regards,
Michael