08-04-2002
you could do
lpstat or lpstat -a
to get an information on printer. you read man.
Do man lpstat for more information
10 More Discussions You Might Find Interesting
1. Programming
Hi !
Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix.
I think it would be done using curses.h ..but that's all i know.
TIA,
Devyani. (3 Replies)
Discussion started by: devy8
3 Replies
2. UNIX for Dummies Questions & Answers
I have been asked to write a unix script to log and report all users logging on to our unix boxes as either the root or oracle users only on a 24 hour basis.
This should trap the logon and logoff time,if possible what they are doing and their username.
Thanks in Advance (2 Replies)
Discussion started by: irehman
2 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Long question and possibly a very short answer....
At work we've just got a new 3rd party backup solution (Netvault by Bakbone -it's v. nice), and I'm currently setting up my UNIX clients as part of the backup schedule. It's just occurred to me that there may be certain files or... (4 Replies)
Discussion started by: geralex
4 Replies
4. UNIX for Advanced & Expert Users
Is there a way to password protect a printer that is on a LAN network? Our security officer said our UNIX printers need to be password protected. Is this possible? I am running Solaris 7 and 8...
Thanks in advanced for any suggestions. (4 Replies)
Discussion started by: rtoba
4 Replies
5. Shell Programming and Scripting
Is it possible to compare two files which reside on different UNIX boxes?
(I'm using HP POSIX/Korn) :confused:
Consider the scenario of a pre-production environment (box 1) and a production environment (box 2) I would like to check if some files on both boxes match or not.
It's quite... (2 Replies)
Discussion started by: flattyre
2 Replies
6. UNIX for Advanced & Expert Users
Hello,
I have a V880 and a 420 running Solaris 9. Each box has more than one NIC card. I'd like to know how to configure the network on the two boxes so that I can directly connect the NIC cards. Meaning, I don't want a switch or router between the two. I just want to run a CAT5 cable to each... (3 Replies)
Discussion started by: agcodba
3 Replies
7. UNIX for Dummies Questions & Answers
Once upon a looong time ago I used to work with Unix systems - SGI mainly.
Now I've inherited 2 boxes - an SGI dual processor Octane and an Indigo2. For the past 2 years they've sat waiting for me to do something with them and never getting round to it.
I run a windows network at home so... (3 Replies)
Discussion started by: JimmyChang
3 Replies
8. Shell Programming and Scripting
Herwith is script thus far, i need to delete the printers within my function, how can i achieve this
#!/bin/ksh
BIN=/usr/lbin
LOCAL_FILE=`$BIN/lpstat -v >> sun5-printers.txt
REMOTE_FILE=`rsh sun8 /usr/lbin/lpstat -v >> sun8-printers.txt
awk 'BEGIN {while ( getline < "sun5-printers.txt")... (12 Replies)
Discussion started by: ggoliath
12 Replies
9. Solaris
Hi
How to configure sudo in all unix boxes.
plz provide the step by step process.
Regards
Praveen (3 Replies)
Discussion started by: tv.praveenkumar
3 Replies
10. Shell Programming and Scripting
I need to export xlm files in a specific directory and insert them into an oracle table. I am new with unix.
I also need to export users from ldap (3 Replies)
Discussion started by: joannascott
3 Replies
LEARN ABOUT PHP
printer_list
PRINTER_LIST(3) 1 PRINTER_LIST(3)
printer_list - Return an array of printers attached to the server
SYNOPSIS
array printer_list (int $enumtype, [string $name], [int $level])
DESCRIPTION
The function enumerates available printers and their capabilities.
PARAMETERS
o $enumtype
-$enumtype must be one of the following predefined constants:
o PRINTER_ENUM_LOCAL: enumerates the locally installed printers.
o PRINTER_ENUM_NAME: enumerates the printer of $name, can be a server, domain or print provider.
o PRINTER_ENUM_SHARED: this parameter can't be used alone, it has to be OR'ed with other parameters, i.e. PRINTER_ENUM_LOCAL
to detect the locally shared printers.
o PRINTER_ENUM_DEFAULT: (Win9.x only) enumerates the default printer.
o PRINTER_ENUM_CONNECTIONS: (WinNT/2000 only) enumerates the printers to which the user has made connections.
o PRINTER_ENUM_NETWORK: (WinNT/2000 only) enumerates network printers in the computer's domain. Only valid if $level is 1.
o PRINTER_ENUM_REMOTE: (WinNT/2000 only) enumerates network printers and print servers in the computer's domain. Only valid
if $level is 1.
o $name
- Used with PRINTER_ENUM_NAME.
o $level
-$level sets the level of information request. Can be 1,2,4 or 5.
RETURN VALUES
Return an array of printers.
EXAMPLES
Example #1
printer_list(3) example
<?php
/* detect locally shared printer */
var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED));
?>
PHP Documentation Group PRINTER_LIST(3)