beautypg.com

Sunos – Xerox 701P42722_EN User Manual

Page 50

background image

4 UNIX TCP/IP

50

Xerox CopyCentre/WorkCentre 118 System Administration Guide

SunOS

This section describes printing from a workstation running SunOS. See the manuals
supplied with the workstation for full details.

Print (lpr)

The lpr command is used to print.

Command format

/usr/ucb/lpr [-P printer name] [-# number of copies]

[-C parameter] File name

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.

• -# number 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 only valid in the spool mode.

• -C parameter

To print from the machine using the PostScript language, use the -C option to specify
the form of output.

This option is valid in the spool mode. In the non-spool mode, the client must be a
Windows NT machine to use this option.

NOTE: If the PostScript logical printer and the -C option are configured simultaneously
using CentreWare Internet Services, some functions may not work as expected.
Also, when specifying the PostScript logical printer as a default printer on UNIX, it is
recommended not to use the -C option by lpr. Refer to the -C option of the lpr
command.

NOTE: Some options which are not listed here (e.g. -m option) and which are not
processed by the workstation sending the print instructions, will not be valid.

NOTE: In the spool mode, up to 32 files can be specified in one lpr 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:

%lpr -PfxPS file1

To print three copies of file1 and three copies of file2 to fxPS, enter the following:

%lpr -PfxPS -#3 file1 file2