Finding printer names on various unix platforms

Finding printer names on various unix platforms

Post by Somebod » Tue, 20 Jan 1998 04:00:00



I am working on an application that runs within a commercial product
that has its own macro language.  The application will run on various
unix platforms.  Depending on the unix platform, I am trying to find out
what printer names are connected to the unix box.

For example, I know you can get a list of printers on the Sun running
Solaris by gathering the directory names under /etc/lp/printers (each
directory is named after a printer).  Also, on the HP there are files
named after printers under the /etc/lp/member directory.

I am wondering how you find a list of printers on the following unix
platforms:

  IBM RS6000 running AIX
  Silicon Graphics running IRIX
  Digital UNIX running UNIX V4.0

I also know you can use the unix command lpstat -p to get a list of
printers, but is this command and the -p option standard on all unix
platforms?

Thanks in advance to any answers or suggestions.

Michael A. Carson

 
 
 

1. ACL on various Unix platforms

Hi,
        We're developing an application where we're using ACLs for file access
permissions quite extensively, we're developing on HPUX-9.x, 10.x and we're
wondering if other Unix platforms also offer ACL like file access control.

Thanks for your help,

Rajiv

--
----------------------------------------------------------------------
Rajiv Shukla                                     My opinions are mine.

Bell Communications Research                     employer.

2. Missing Windows CE 2.0 DLL file

3. Mounting extended FAT32 partitions

4. How does one find the various unix ftp archives?

5. sbrk/malloc question

6. Finding CPU utilization on UNIX platforms

7. Source Req : Remote Execution Server

8. finding which endian to use on multiple unix platforms

9. Strange socket behavior on various platforms

10. UID bit size on various platforms

11. Wrong size calculation in __ioremap(), various platforms

12. Looking for schedule-system on various platforms