4 printing (hp-ux/solaris), Print (lp), Command format – Oki B 6300 User Manual
Page 35: Command options, Precautions, Sample
6.4 Printing (HP-UX/Solaris)
31
6.4
Printing (HP-UX/Solaris)
This section describes the procedure for printing from workstations running HP-UX or
Solaris.
Refer to
• Manuals that came with the workstations
Print (lp)
The “lp” command is used for printing.
Command Format
lp [-d Printer name] [-n No. of copies] File name
Command Options
The following command options are available:
-d Printer name
Specify the printer name registered by the “lpadmin” command as the -d option. If this option
is omitted, the default printer lp will be specified.
-n No. of copies
This option specifies the number of copies. If one “lp” command is issued to print multiple
files, the number of copies specified by this option will apply to all the files.
However, this option is effective when the printer is in the spool mode. In the non-spool
mode, the client must be a Windows NT machine to use this option.
Precautions
• Among options not listed above (e.g. -m option), those not processed by the workstation
which sends the print instructions will not be effective.
• In the spool mode, up to 32 files can be printed by one “lp” command. Files that come
after the 32nd files will be ignored.
Sample
To print a file named “file1” to a printer set up as “P001”, enter the following command:
To output three copies of “file1” and “file2” to “P001”, enter the following:
%lp -d P001 file1
%lp -d P001 -n3 file1 file2