Note: The syntax of the native LPR command varies according to the operating system. If you are transferring a file from an AS400 or other UNIX-based system, modify the syntax as required.
The following example shows how to issue an LPR command from a Sun Solaris UNIX platform:
From the command prompt, the syntax is as follows:
LPR -Pserver:printer [-#number] [-Cclass] [-Jjobname] filename
where:
-Pserver:printer
Specifies the name or IP address of the server, and the required printer or print queue, separated by a colon (:). (The printer queue definition should match the LPDDEST QDEST parameter.)
-#number
Is not used (if specified, it is ignored).
-Cclass
Is not used (if specified, it is ignored).
-Jjobname
Specifies the name of this job.
filename
Specifies the name of the file to be printed.
Following is a sample command:
LPR -Plpdhost:LPDprtr -Jlpdjob sample.reporta.doc
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|