Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!jeff From: jeff@eniac.seas.upenn.edu (Jeffrey M White) Newsgroups: comp.unix.wizards Subject: Re: Looking for Printer names Message-ID: <14131@netnews.upenn.edu> Date: 7 Sep 89 14:36:27 GMT References: <2024@munnari.oz.au> <3979@phri.UUCP> Sender: news@netnews.upenn.edu Reply-To: jeff@eniac.seas.upenn.edu.UUCP (Jeffrey M White) Organization: University of Pennsylvania Lines: 36 In article <3979@phri.UUCP> roy@phri.UUCP (Roy Smith) writes: >In <2024@munnari.oz.au> kklw@mullian..ee.mu.OZ.AU (Kevin K L WONG) writes: >> How can I find out what are the names of printers availble in an >> unix system for the command lpr ? Thank you. > > Assuming you are running a fairly standard Berkeley system, you >should be able to just look at the /etc/printcap file. It should have a >number of entries which look sort of like the following. The first bit, >the "lp9|cit902" gives the name(s) for this printer. >... Unless the program is restricted, you can also use the lpc command (usually located in /etc) to get all the printer names. Just say "lpc stat all". It's output will look like the following: % cets: queuing is enabled printing is enabled no entries no daemon present pender: queuing is enabled printing is enabled no entries no daemon present lw: queuing is enabled printing is enabled no entries no daemon present where "cets", "pender", and "lw" are the names of the printers. Jeff White University of Pennsylvania jeff@eniac.seas.upenn.edu