forked from alhazred/solaris-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_printers.ksh
33 lines (25 loc) · 933 Bytes
/
get_printers.ksh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/ksh
###
### Print out the list of all the printers available
###
### Use with the script 'printers_convert_html' to
### have it format the output of this file
### into HTML.
###
### Submitted by: [email protected]
###
HOST=$(hostname)
OUTFILE=/sccm/cfig/sysinfo/printers/$HOST
lpstat -p all | awk '{print $2}' > $OUTFILE
##############################################################################
### This script is submitted to BigAdmin by a user of the BigAdmin community.
### Sun Microsystems, Inc. is not responsible for the
### contents or the code enclosed.
###
###
### Copyright 2005 Sun Microsystems, Inc. ALL RIGHTS RESERVED
### Use of this software is authorized pursuant to the
### terms of the license found at
### http://www.sun.com/bigadmin/common/berkeley_license.html
##############################################################################