Previous Topic: LPR Syntax: WindowsNext Topic: LPR Syntax: UNIX


LPR Syntax: Linux

The following example shows how to issue an LPR command from Linux Red Hat.

From the command prompt, the syntax is as follows:

LPR -Pprinter@server [-Cclass] [-Jjobname] [-Zoption] filename

where:

-Pprinter@server

Specifies the printer queue name, and the name or IP address of the server where the printer resides. The values are combined by the @ symbol. (The printer queue definition should match the LPDDEST QDEST parameter.)

-Cclass

Is not used (if specified, it is ignored).

-Jjobname

Specifies the name of this job.

-Zoption

Is not used (if specified, it is ignored).

Filename

Specifies the name of the file to be printed.

Following is a sample command:

LPR -Plpdprtr@LPDHost -Jlpdjob sample.reporta.doc