David Bear wrote:
> On Thu, 22 Aug 2002, Patrick Powell wrote:
>>I am currently setting up the following calls in the
>>LPRng library so you can get information from LPRng
>>by using a separate process or linking into the LPRng
>>library (liblprng) (as for CUPS).
>>
>>The API is blindingly stupid:
> 
> So am I.  What I would like is a way to get this kind of info from a
> scripting language like python.  Of course I could just use the lpq/lprm
> interfaces to do some thing but I'd like to be lazy and receive status
> info in some easily parseable structure.  The goal is to write a web
> interface to show printer queues and status.
> 
> any suggestions?

The web interface has already been done (http://www.komar.org/  -> 
Misc. Tech Stuff).

Or, you can get the interface details by looking at 
UTIL/{lpq,lpr,lprm}_in_perl.

-Rick

-- 
|Rick Cochran                                   phone: 607-255-7618|
|Cornell CIT - Systems & Operations - Net-Print   FAX: 607-255-8521|
|730 Rhodes Hall, Ithaca, N.Y. 14853        email: [EMAIL PROTECTED]|


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to