OS/2 2.x and OS/2 Warp: LPR (ASCII data, e.g. PCL and Postscript)

6An OS/2 printer device and queue is now created and the print server is ready to receive print from any OS/2 application.

8.2.2.Print using LPR command from the Command Line

When printing from the OS/2 command line the command LPR can be used.

LPR -b -s<server> -p<queue> <file>

Element

Replace with

 

 

<server>

The IP address or the Host name of the print server.

 

 

<queue>

a queue name as defined in 4b above, page 60.

 

 

<file>

The name of the file to print.

 

 

Example: Type the following line to print the file config.sys from the command line, using the default pre-configured queue name (PAR_B) from the print server.

LPR -b -s192.168.0.227 -ppar_b config.sys

8.2.3.Print from WIN-OS/2 using the LPRMON command

The LPRMON command is used to monitor one of the parallel ports LPT1 - LPT3 and to redirect print data from the parallel port to the TCP/IP LPD port. If you want to print from WIN- OS/2, and you do not have the DOS/Windows TCP/IP access kit, you can use the LPRMON command.

LPRMON -b -s<server> -p<queue> LPT<n>

Element

Replace with

 

 

<server>

The IP address or the Host name of the printer.

 

 

<queue>

a queue name as defined in 4b above, page 60

 

 

<n>

Number of the parallel port to redirect.

 

 

Example: Type the following command to redirect the LPT3 port to the TCP/IP LPD port.

LPRMON -b -s192.168.0.227 -ppar_b LPT3

Intermate100 and Intermate101 Print Server Administration Manual

62

Page 62
Image 62
Intermate 100 manual Print using LPR command from the Command Line, Print from WIN-OS/2 using the Lprmon command