Lately I was trying on the LPR commands. Then I fould the right way to do it.
====================
What LPR does?
Sends a print job to a network printer
Usage: lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d] filename
Options:
-S server Name or ipaddress of the host providing lpd service
-P printer Name of the print queue
-C class Job classification for use on the burst page
-J job Job name to print on the burst page
-o option Indicates type of the file (by default assumes a text file)
Use "-o l" for binary (e.g. postscript) files
-x Compatibility with SunOS 4.1.x and prior
-d Send data file first
=============================================
Right way to print
1) lpr -S 16.180.100.31 -P LP "-o l" BlankPage.prn
2) lpr -S localhost -P LP "-o l" BlankPage.prn
====== for simple text files
1) lpr -S localhost -P LP -o Blank.txt
Source:
http://technet.microsoft.com/en-us/library/cc731926(WS.10).aspx
====================
What LPR does?
Sends a print job to a network printer
Usage: lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d] filename
Options:
-S server Name or ipaddress of the host providing lpd service
-P printer Name of the print queue
-C class Job classification for use on the burst page
-J job Job name to print on the burst page
-o option Indicates type of the file (by default assumes a text file)
Use "-o l" for binary (e.g. postscript) files
-x Compatibility with SunOS 4.1.x and prior
-d Send data file first
=============================================
Right way to print
1) lpr -S 16.180.100.31 -P LP "-o l" BlankPage.prn
2) lpr -S localhost -P LP "-o l" BlankPage.prn
====== for simple text files
1) lpr -S localhost -P LP -o Blank.txt
Source:
http://technet.microsoft.com/en-us/library/cc731926(WS.10).aspx
No comments:
Post a Comment