SaPrinter(TCL_ADM)
SaPrinter: SaPrintersGet, SaPrinterGetDefault, SaPrinterGetClasses, SaPrinterGetQueues --
SCOadmin interfaces for querying the print subsystem
Syntax
SaPrintersGet [host] [type] [listtypes]
SaPrinterGetDefault [host]
SaPrinterGetClasses [host] [listtypes]
SaPrinterGetQueues [host] [type] [listtypes]
Description
SaPrintersGet-
get list of printers on host machine
SaPrinterGetDefault-
get default printer on host machine
SaPrinterGetClasses-
get list of printer classes on host machine
SaPrinterGetQueues-
get list of printer queues on host machine
These functions provide a front end to obtain commonly used information
from the printer OSA.
SaPrintersGet-
get a list of printers of specified type(s) on specified host machine.
When "listtypes" is true, SaPrintersGet returns a list of lists where
each list contains a pair: printer and printer type.
SaPrinterGetDefault [host]-
get the default printer on the specified host machine. If no default
printer is configured, returns {}.
SaPrinterGetClasses [host] [listtypes]-
get a list of printer classes on the specified host machine.
When "listtypes" is true, SaPrinterGetClasses
returns a list of lists where
each list contains a pair: class name and the type "class".
SaPrinterGetQueues [host] [type] [listtypes]-
get a list of printer queues (e.g. printers and classes) of specified
type(s) on specified host machine. When "listtypes" is true,
SaPrinterGetQueues returns a list of lists where
each list contains a pair: queue name and the type (see below).
Arguments
icon-
title of a desktop icon representing an icon.
file-
optional full pathname of a file to be printed. If omitted, a file selection
box is presented for the user to interactively select the file to be printed.
Errors
Errors will be thrown and should be caught with ErrorCatch.
See also
SCO Visual Tcl Programmer's Guide and Reference in SCO Visual Tcl Programmer's Guide and Reference.
16 September 2002
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003