This connectivity utility is used to print a file to a host running an LPD server. You use the lpr command from the Windows NT command prompt, you must first install the Microsoft TCP/IP Printing service from the Network option in Control Panel.
Syntax
lpr -SServer -PPrinter [-oOptions] [-CClass] [-JJobname] [-o option] [-x] [-d] filename
Parameters
-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.
-o option
Indicates the type of the file (by default assumes a text file). Use "-o l" for binary PostScript files.
-x
Indicates compatibility with SunOS version 4.1.x and earlier.
-d
Send data file first.
filename
The name of the file to be printed.
Notes
To print a nontext file, such as a PostScript file, from a Windows NT-based 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-based computer, use the lpr utility on the UNIX computer with the
-l switch. For details on the UNIX lpr utility, see your UNIX documentation.