5. Print Settings from the Command Line

Basic Functions

When printing from the command line, you can configure print settings.

Enter the following command:
$ lpr -P [Printer Name] [File Name] -o [Option]=[Parameter]

Note


Job Name [CNDocName]

Specifies the job name.

$ lpr [File Name] -o CNDocName=[Parameter]

  Parameter Enter character strings of up to 32 bytes.
  • If you have saved a job name from the driver UI with the [Secured Print], [Store], or [Hold] settings, and print the document without specifying a job name from the command line, it will be printed with the job name that was set using the driver UI.
  Example To print the file "sample.ps" with the job name "mydocument":
$ lpr sample.ps -o CNDocName=mydocument

Job Request Name [CNUsrName]

Specifies the name of the person requesting a job.

$ lpr [File Name] -o CNUsrName=[Parameter]

  Parameter Enter character strings of up to 32 bytes.
  • If you have saved a job request name from the driver UI with the [Secured Print] settings, and print the document without specifying a job request name from the command line, it will be printed with the job request name that was set using the driver UI.
  Example To print the file "sample.ps" with the job request name "user":
$ lpr sample.ps -o CNUsrName=user1

Number of Copies [CNCopies]

Specifies the number of copies to be printed.

$ lpr [File Name] -o CNCopies=[Parameter]

  Parameter Specify a value from 1 to 9999 (number of copies).
  • For iR1018/1022/1023, 2016/2016i, 2018/2018i, 2020/2020i, 2022/2025/2030, L90/160/230, LC800/L3000, MF4010, 4100, 4270, 4600, 6530/6550/6570, 6540PL/6560PL/6580PL, and 7170i, from 1 to 999 copies can be specified.
  • If you specify a value that exceeeds the possible range, the maximum possible value will be specified. Also, if you specify an invalid value (-1, 0, etc.), one copy will be printed.
  Example To print 3 copies of the file "sample.ps":
$ lpr sample.ps -o CNCopies=3
< Previous / Next >