Source-Changes archive

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

Re: CVS commit: basesrc



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



Home | Main Index | Thread Index | Old Index