Lpr

ITP/Server will send a spool file to any printer that understands the Line Printer Daemon protocol (Lpr). ITP/Server cannot verify if the printer will understand the data in the spool file.

The host must run an LPD daemon. This daemon must support the basic requirements as described in RFC 1179.

ITP/Server does not support the optional switching of Control and Data files as described in section 6 of RFC 1179.

The Lpr protocol requires every client to submit its jobs using a unique 3-digit Job ID. Due to limitations in the Lpr protocol and the (commonly used) Berkeley implementation of the LPD daemon ITP/Server is not able to determine whether or not a Job ID will conflict with jobs pending on the host. Therefore ITP/Server uses a sequence file to generate sequential Job IDs. If there are multiple ITP/Server services running on the same NT server who can submit jobs using the Lpr command, it is strongly advised to use the SequenceFile(<text>) parameter to specify the same sequence file for the sequence file for every server. This file should be located in a shared directory that can be accessed by every service.

Syntax
Lpr
File(<text>)
Host(<text>)
Printer(<text>)
User(<text>)
Banner(<text>)
SequenceFile(<text>)
Connection(<text>);
Parameters

File: Required.
The spool file that ITP/Server will send to the printer.

Host: Required.
The host where ITP/Server will send the spool file to.

Printer: Optional.
The name of the printer that ITP/Server will print to. This printer must be defined on the host. If this parameter is not specified ITP/Server will send the document to the default ("lp") printer.

User: Optional.
The User ID that ITP/Server will use when submitting the job. If this parameter is not specified ITP/Server will send the document with the User ID "itpds".

Banner: Optional.
The text that will be printed on the banner page. If this parameter is not set ITP/Server will request the host to suppress the banner page.

SequenceFile: Optional.
Name of a file that ITP/Server will use to generate sequence numbers. Use this setting when more than one ITP/Document Processor is going to print to the host. Set the same file for all, they will share it.

If this parameter is not set ITP/Server will use an automatically created sequence file in its installation directory, one for each ITP/Document Processor.

Connection: Optional.
The range of network ports that ITP/Server will use to attempt to connect to the LPD server.

The range should be specified as:

The default value for this parameter is Connection ("721:731").

Note

RFC 1179 restricts the allowed port range to ports 721 to 731 and IITP/Server will by default use only this range since the LPD server is allowed to refuse connections outside this range.
It is possible for servers to exhaust the available ports if many jobs are sent in a short time frame to the same LPD server. In this situation the Connection(..) parameter can be used to expand the range of available network ports.

It is not possible to specify a range that will be accepted by any LPD server, but a safe bet is to use the same port range that is used by the Microsoft Windows NT LPR client (513 - 1023) that should be accepted by most LPD clients.

This alternative range can be specified as Connection ("513:1023").