beautypg.com

Command options, Precautions, Sample – Oki B 6300 User Manual

Page 32

background image

28

6 Printing From UNIX

Command Options

The following command options are available:

-P Printer name

This option specifies the printer name registered at “/etc/printcap”. If this option is omitted,
print data will be output to the default printer lp.

-# No. of copies

This option specifies the number of copies. If one “lpr” command is issued to print multiple
files, the number of copies specified by this option will apply to all the files.

This option is valid when the printer is in the spool mode.

-C option

Use the -C option to specify the form of output.

This option is valid 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.

Important
• When the PostScript logical printer that was configured on the OkiWebRemote and -C option of “lpr”

command have been specified simultaneously, some of the actions cannnot be guaranteed to work.
Also, when specifying the PostScript logical printer as a default printer on Unix, it is recommended not to
user the -C option by “lpr” command.

Refer to
“6.5 -C Option (lpr Command)” (P. 34)

Precautions

• Among options not listed above (e.g. -m option), those not processed by the workstation

that sends the print instructions will not be valid.

• In the spool mode, up to 32 files can be printed by one “lpr” command. Files that come

after the 32nd file will be ignored.

Sample

To print a file named “file1” to a printer set up as “P001”, enter the following command:

To output 3 copies of “file1” and “file2” to “P001”, enter the following:

To print a file named “file1” to a printer set up as “P001” as a A4-sized duplex job, enter the
following command

%lpr -P P001 file1

%lpr -P P001 -#3 file1 file2

%lpr -P P001 -C,DUP,A4 file1