home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / admin / 6700 < prev    next >
Encoding:
Text File  |  1992-12-18  |  975 b   |  28 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!dunnart!janet
  3. From: janet@cs.uwa.oz.au (Janet Jackson)
  4. Subject: Re: How to do a lpq of all queques on printer at once
  5. Message-ID: <janet.724639800@dunnart>
  6. Sender: usenet@bilby.cs.uwa.edu.au
  7. Nntp-Posting-Host: dunnart
  8. Organization: Dept. Computer Science, University of Western Australia.
  9. References: <DLA.92Dec15184456@se05.wg2.waii.com>
  10. Date: Fri, 18 Dec 1992 00:50:00 GMT
  11. Lines: 15
  12.  
  13. Unlike lpc, lpq doesn't seem to have an "all" option, or the ability
  14. to specify multiple printers.  As far as I can see you have two options:  
  15. - use "lpc status all" or "lpc status queuename1 queuename2 ..."
  16.   to get a rough idea (it will tell you how many jobs in each queue)
  17. - use a shell loop.  In csh:
  18.      foreach p (queuename1 queuename2 ...)
  19.         lpq -P$p
  20.      end
  21.  
  22.  
  23. Janet Jackson
  24. <janet@cs.uwa.edu.au>
  25. Systems Administrator
  26. Department of Computer Science
  27. The University of Western Australia
  28.