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.
Note: | Some systems use lp -dqueuename to send output to the printer; others use lpr -Pqueuename. You should specify whatever command is appropriate to generate printed output on your system. |
Note: | To modify an existing port using the Printer Setup dialog, select the port you want to modify and edit the port information in the Edit Port input area, then select Add/Replace. |
To close any dialog without accepting the changes, select Cancel. To close a dialog and accept the changes, select Dismiss.