This connectivity utility is used to print a file to a host running an LPD server.
lpr -SServer -PPrinter [-oOptions] [-CClass] [-JJobname] filename
-oOptions
Specifies options that the lpr utility passes to the Lpdsvc service. Options available are specified in RFC 1179.
-SServer
Specifies the name of the host that has the printer attached to it.
-PPrinter
Specifies the name of the printer for the desired queue.
-CClass
Specifies the content of the banner page for the class.
-JJobname
Specifies the name of this job.
filename
The name of the file to be printed.
To print a nontext file, such as a PostScript file, from a Windows NT computer to a printer controlled by a UNIX computer, use the lpr utility with the -ol switch. The l option specifies that the print file should be passed as is to the printer, with no processing by the Lpdsvc service.
To print a nontext file from a UNIX computer to a printer controlled by a Windows NT computer, use the lpr utility on the UNIX computer with the -l switch. For details on the UNIX lpr utility, see your UNIX documentation.