Print commands used with the LPD protocol

The LPD protocol defines a print command called lpr. You can use the lpr command, or several other commands that use the LPD protocol, to submit jobs to LPD input devices.

Syntax and available options vary from one print command to another and from one version of lpr to another. You might have to adapt examples of print commands for your own system.

You might also have to configure the sending system to compensate for options that your print command does not provide. For example, if the print command does not have an option for specifying a print server, you must create a remote print queue on the sending system with the same name as the LPD input device.

Here are a few common LPD print commands. For more information about these commands, see the operating system or product documentation.

Linux print commands

Command name Where to get it Printer option Server option Job properties option
lpr Native -P None Varies
Note: Some LPR clients let you send job options with the -o command. See the documentation for your LPR client to determine if you can do this.
lprafp Download from the Ricoh Production Print Web site (downloads for InfoPrint Manager for Windows) -p -s -o
Note: If you submit jobs using lprafp and include options on the -o flag, you must use only single-byte characters in the options. If you use double-byte characters in the options, RICOH ProcessDirector cannot read them and the lprafp request is rejected.

AIX print commands

Command name Where to get it Printer option Server option Job properties option
lpr Native -P None None
enq Native -P None -o
lp Native -d None -o
lprafp InfoPrint Manager for AIX; download latest version from the Ricoh Production Print Web site (downloads for InfoPrint Manager for Windows) -p -s -o
Note: If you submit jobs using lprafp and include options on the -o flag, you must use only single-byte characters in the options. If you use double-byte characters in the options, RICOH ProcessDirector cannot read them and the lprafp request is rejected.
qprt Native -P None None
qprt InfoPrint Manager for AIX -P None -o

Windows print commands

Command name Where to get it Printer option Server option Job properties option
lpr Native -P -S None
Note: The Windows lpr command has an -o option, but it indicates the file type, not job properties.
lprafp Download from the Ricoh Production Print Web site (downloads for InfoPrint Manager for Windows) -p -s -o
Note: If you submit jobs using lprafp and include options on the -o flag, you must use only single-byte characters in the options. If you use double-byte characters in the options, RICOH ProcessDirector cannot read them and the lprafp request is rejected.

Examples

This command submits a file called report.pdf from a Windows system to an LPD input device called LPDPDF that is defined on a server called morris and requests two copies:

lpr -S morris -P LPDPDF -# 2 report.pdf

Either of these commands submits a file called report.afp from an AIX system to an LPD input device called LPDAFP that is defined on a server called morris. To use the AIX lpr command, you must first define a remote print queue for LPDAFP on the AIX system that you are sending the job from.

lpr -P LPDAFP -C A report.afp
lprafp -smorris -pLPDAFP -oclass=A report.afp