> From [EMAIL PROTECTED] Thu Sep 14 19:30:14 2000 > From: "Hendrik (Network Administrator)" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: LPRng: Visable Status > Date: Fri, 15 Sep 2000 12:53:45 +1200 > > Hello.. > > This may be a long shot, I'm probably off on a tangent with this idea, > but... > > The '/tmp/lpqxxxxxxx' file shows the status of the Printer and Printer > Queue, is there any SAFE way that this status/information can be made > publically accessable, e.g. as a WEB page? > > None of our users have access to a shell, they access via SAMBA. > > Cheers! There is an interesting thing you can do. a) you can periodically get the status for a selected set of queues and put them in a file that is exported by Samba. b) you can set up the 'print status = lpq...' entry so that the 'lpq' program is a shell script that saves the LPQ status in a file that users can then access. If you do this, I recommend using the undocumented super secret Samba Hacks option: printer status = /usr/local/bin/lpqhack %p %j #!/bin/sh lpq -P$1 -l >/tmp/lpq_status_$1 grep $2 /tmp/lpq_status_$1 The 'lpq' command is now set up so that it will only put a couple of lines of status information in the /tmp/lpq_status_%p file, and you can now grep this file for the job. Patrick Powell Astart Technologies, [EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D, Network and System San Diego, CA 92123 Consulting 858-874-6543 FAX 858-279-8424 LPRng - Print Spooler (http://www.astart.com) ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
