8 Printer Environment Settings
Printing
This section describes printing from workstations running Solaris or
Print (lp)
The lp command is used for printing.
Command format
lp
Command options
The following command options are available.
•
Specify the printer name registered by the lpadmin command as the
•
This option specifies the number of copies. If one lp command is issued to print multiple files, the number of copies specified will apply to all the files. However, this is only effective when the machine is in the spool mode. In the
NOTE: Some options which are not listed here (e.g.
NOTE: In the spool mode, up to 32 files can be printed by one lp command. Any files specified after the 32nd file will be ignored.
Example
To print a file named file1 to a printer named fxPS, enter the following command:
%lp
To output three copies of file1 and then three copies of file 2 to fxPS, enter the following command:
%lp
Delete (cancel)
The cancel command is used to delete print data.
Command format
cancel [printer name] [job number]
Command options
The following command options are available.
• Printer name
This option specifies the printer name. The cancel command can be effectively used with the combined use of
240