home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!dunnart!janet
- From: janet@cs.uwa.oz.au (Janet Jackson)
- Subject: Re: How to do a lpq of all queques on printer at once
- Message-ID: <janet.724639800@dunnart>
- Sender: usenet@bilby.cs.uwa.edu.au
- Nntp-Posting-Host: dunnart
- Organization: Dept. Computer Science, University of Western Australia.
- References: <DLA.92Dec15184456@se05.wg2.waii.com>
- Date: Fri, 18 Dec 1992 00:50:00 GMT
- Lines: 15
-
- Unlike lpc, lpq doesn't seem to have an "all" option, or the ability
- to specify multiple printers. As far as I can see you have two options:
- - use "lpc status all" or "lpc status queuename1 queuename2 ..."
- to get a rough idea (it will tell you how many jobs in each queue)
- - use a shell loop. In csh:
- foreach p (queuename1 queuename2 ...)
- lpq -P$p
- end
-
-
- Janet Jackson
- <janet@cs.uwa.edu.au>
- Systems Administrator
- Department of Computer Science
- The University of Western Australia
-