> From [EMAIL PROTECTED] Fri Aug 23 15:45:43 2002 > Date: Fri, 23 Aug 2002 14:32:27 -0700 (MST) > From: David Bear <[EMAIL PROTECTED]> > Subject: Re: LPRng: KDE Print - LPRng Support > To: [EMAIL PROTECTED] > > > > 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?
a) dig into the python intervals and learn how to interface python to a C function. b) set up a library that does (effectively) the same thing with the status returned by lpq a) is painful b) is quick and easy... Sorry... > > -- > David Bear > College of Public Programs/ASU > 480-965-8257 > ...the way is like water, going where nobody wants it to go Patrick Powell Astart Technologies [EMAIL PROTECTED] 6741 Convoy Court Network and System San Diego, CA 92111 Consulting 858-874-6543 FAX 858-751-2435 LPRng - Print Spooler (http://www.lprng.com) ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
