Barr TCP/IP printing services are based on RFC1179 (IBM version dated March 1992), which contains the communication specification for LPR Acronym for Line Printer Remote. The UNIX print command. This does not actually print files but rather copies them to a spool area from where a daemon copies them to the printer. and LPD Acronym for Line Printer Daemon. The remote printer server that allows other hosts to print on a printer local to your host. printing. If our request contains extended functionality that is rejected, we automatically revert back to the 1990 standards.
The following table lists the supported and unsupported features of RFC1179. The command codes listed can be binary (for example, 02-Receive a printer job) or ASCII (for example, N-Name of source file).
LPR Support |
LPD Support |
Feature |
Description |
Y |
Y |
5.1 01-Print any waiting jobs |
Starts the printing process if it is not already running. |
Y |
Y |
5.2 02-Receive a printer job |
Controlled by a second level of commands. LPD gets commands by sending them over the same connection. |
Y |
Y |
5.3 03-Send queue state (short) |
If user name, job number, or both are supplied, only those jobs for those users or with those job numbers will be sent. Response is an ASCII stream that describes the printer queue. |
Y |
Y |
5.4 04-Send queue state (long) |
If user name, job number, or both are supplied, only those jobs for those users or with those job numbers will be sent. Response is an ASCII stream that describes the printer queue. |
Y |
Y |
5.5 05-Remove jobs |
Deletes print jobs from the specified queue. If only the agent (user name making request) is given, deletes the currently active job. Can only delete a job that is not owned by the user if agent is “root.” Only “root” agent can delete jobs by user name. |
Y |
Y |
6.1 01-Abort job |
Removes files created during this “receive job” command. |
Y |
Y |
6.2 02-Receive control file |
Control file is ASCII stream. Ends of lines are ASCII LF. Total number of bytes sent as first operand. Name of control file sent as second. It should start with ASCII “cfA” followed by 3-digit job number followed by host name that constructed the control file. |
Y |
Y |
6.3 03-Receive data file |
First operand is total number of bytes in the stream or zero. Name of file should start with ASCII “dfA” (might change to dfB, dfC, etc.) followed by 3-digit job number followed by host name that constructed the file. In the Barr product, LPR does not send a zero byte count and LPD will not support a zero byte count. |
Y |
Y |
6.4 04-Receive control file first |
Allows you to send a control file followed by multiple data files when you receive files to the print spool, which means you can print multiple copies of a file. |
Y |
Y |
6.5 05-Receive data file with unspecified length |
Allows the host to send a data file without specifying the length. The host must send the control file first because the end of file is acknowledged when the host closes the connection. |
Y |
Y |
8.1 C-Class for banner page |
Sets the class name to print on the banner page. If name is omitted, name of host on which file is printed will be used. Class operand is used to display the host from which the printing job originated. |
Y |
Y |
8.2 H-Host name |
Specifies the name of the host to be treated as the source of the print job. Command must be included in the control file. |
Y/N |
Y* |
8.3 I-Indent printing |
Specifies number of spaces to indent when the file is printed with the “f” option (only valid option). |
Y |
Y |
8.4 J-Job name for banner page |
Sets the job name to print on the banner page. It can be omitted. Conventionally used to display the name of the file or files “printed.” Ignored unless the print banner command code “l” is also used. |
Y |
Y |
8.5 L-Print banner page |
Causes banner page to print. User name can be omitted. Class for banner page “c” and job name for banner page “j” must precede this command in the control file to be effective. |
Y/N |
Y* |
8.6 M-Mail when printed |
Causes mail to be sent to the user at the host specified by the “h” entry when printing operation ends. |
Y |
Y |
8.7 N-Name of source file |
Specifies the name of the file from which the data file was constructed. Returned on a query and used to print with the “p” command code when no title is given. |
Y |
Y |
8.8 P-User identification |
Specifies the user identification of the entity requesting the printing job. Must be included in the control file. |
N |
N |
8.9 S-Symbolic link data |
Used to record symbolic link data on a UNIX system so changing a file’s directory entry after a file is printed will not print the new file. Ignored if the data file is not symbolically linked. |
Y |
Y |
8.10 T-Title for pr |
Provides a title for a file to be printed with the “p” command code. Ignored by other printing commands. |
Y |
Y |
8.11 U-Unlink data file |
Indicates that the specified file is no longer needed. Only use with data files. |
Y/N |
Y* |
8.12 W-Width of output |
Limits the output to the specified number of columns for the “f”, “l” and “p” command codes. Ignored for other output generating commands. |
N |
Y* |
8.13 1-troff R font |
Specifies the file name for the troff R font (font printed with Times Roman by default). |
N |
Y* |
8.14 2-troff I font |
Specifies the file name for the troff I font (font printed with Times Italic by default). |
N |
Y* |
8.15 3-troff B font |
Specifies the file name for the troff B font (font printed with Times Bold by default). |
N |
Y* |
8.16 4-troff S font |
Specifies the file name for the troff S font (font printed with Special Mathematical font by default). |
N |
Y* |
8.17 X-extended print option |
Specifies print option extensions. |
Y/N |
Y* |
9.1 c-Plot CIF file |
Causes data file to be plotted and treats the data as CIF (CalTech Intermediate Form) graphics language. |
Y/N |
Y* |
9.2 d-Print DVI file |
Causes data file to be printed and treats the data as DVI (TeX output). |
Y/N |
Y* |
9.3 f-Print formatted file |
Causes data file to be printed as plain text file with page breaks. Discards all ASCII characters except HT, CR, FF, LF, and BS. |
Y/N |
Y* |
9.4 g-Plot file |
Causes data file to be plotted and treats data as output from Berkeley UNIX plot library. |
Y |
Y* |
9.5 k-Reserved for Kerberized LPR clients and servers |
|
Y |
Y |
9.6 l-Print file leaving control characters |
Causes specified data file to be printed without filtering the control characters (which the “f” command code does). |
Y/N |
Y* |
9.7 n-Print ditroff output file |
Prints the data file and treats data as ditroff output. |
Y/N |
Y* |
9.8 p-Print file with “pr” format |
Causes data file to be printed with heading, page numbers and pagination. Heading should include date/time printing started, title, and page number identifier followed by page number. Title is name of file specified with “n” command code unless the “t” (title) command code was used. After page of text prints, starts with new page and new page number (no way to specify length of page). |
Y |
Y |
9.9 r-File to print with FORTRAN carriage control |
Causes data file to be printed. Interprets column of each line as FORTRAN carriage control (blank, 1, 0, +). Most FORTRAN programmers expect - (triple space) to work too. |
Y/N |
Y* |
9.10 t-Print troff output file |
Prints data file as Graphic Systems C/A/T phototypesetter input (standard output of UNIX troff command. |
Y |
Y* |
9.11 v-Print verbatim file |
Prints a Sun raster format file. |
Y/N |
Y/N* |
9.12 x-extended print command |
Specifies custom file type extensions. |
* LPD can receive these commands, but processing is not based on these flags. You can route documents or configure override tables based on these fields.