To direct the output of the Common Printing subsystem to a printer, you must first configure the system to recognize any available printers and queues. Printer definitions are installed through the CwPrinterPrompter. Install printer definitions as follows:
CwPrinterPrompter new prompt
port=print_command
The port is any string which users will recognize as referring to a particular printer. The print_command is the command used for sending output to the printer port (for example, lp -d or lpr -P. For example, suppose you have two printers, ADMIN and LAB. Your definitions might look like the following:
ADMIN=rsh bandit "lp -d ps" LAB=lpr -Pgonzo
In this example, ADMIN refers to a printer connected to the system BANDIT, so the print command is a remote shell command executed on BANDIT. ADMIN is a PostScript printer attached to a queue named PS, so the command lp -d ps is executed on BANDIT to print to ADMIN. LAB, however, prints to a printer on the local system, so the print command executed locally to print to LAB is lpr -Pgonzo, where GONZO specifies the defined PostScript printer queue name.
To close any dialog without accepting the changes, select Cancel. To close a dialog and accept the changes, select Dismiss.