On Thu, Oct 30, 2003 at 04:45:28PM -0500, William C Beegle wrote: > We have some busy printers. I'm interested in knowing the amount of time > that jobs sit in the queue before being printed. Is there an easy way to > extract that info from LPRng? > > -willie beegle > >
HMMM... #> lpq Printer: [EMAIL PROTECTED] Queue: no printable jobs in queue Server: no server active Status: job '[EMAIL PROTECTED]' saved at 15:03:02.946 Filter_status: done at 15:03:02.926 Rank Owner/ID Class Job Files Size Time done [EMAIL PROTECTED] A 244 /tmp/m 614486 15:00:06 The last entry in the 'status line' is the time at which the job was put into the queue. You can make this a full YYMMDD format using the full_time flag in the printcap or lpd.conf file: Printer: [EMAIL PROTECTED] Queue: no printable jobs in queue Server: no server active Rank Owner/ID Class Job Files Size Time done [EMAIL PROTECTED] A 244 /tmp 614486 2003-11-09-15:00:06.000 Now you can convert to the unix time and then take the difference. Best I can do, sorry. -- 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. -----------------------------------------------------------------------------
