[cups.general] LPD Protocol Issue

Adam Tauno Williams awilliam at whitemice.org
Wed Mar 16 12:01:46 PDT 2011


On Wed, 2011-03-16 at 13:37 -0400, Adam Tauno Williams wrote:
> I have to submit a job to a CUPS server from an embedded environment (so
> no subprocess invoking of lpr, etc...).  I've implemented an LPR/LPD
> client years ago in C and am now attempting to do so in Python.  The
> print job appears on the CUPS print server but although the data file
> seems to be sent [the server responds with \000] the job is always
> zero-sized and never prints.  Any tips/pointers would be appreciated.
> No authentication is involved.

Nevermind;  almost immediately after sending the message I figured it
out [of course].

So if anyone wants to submit LPR/LPD jobs from Python without any
subprocess trickery:
<http://coils.hg.sourceforge.net/hgweb/coils/coils/file/0ee4e17eb723/src/coils/core/api/print/lpr.py>





More information about the cups mailing list