Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (k - l) lp(1)
Preprocessing File Data
The lp command does not preprocess data in Guardian EDIT les, compiler listing les, and
PostScript les. lp performs limited preprocessing of the control characters in OSS ASCII text
les. For example, line feed control characters signify the end of a record and form feed control
characters signify a page eject. Because lp has limited capability to handle all of the control
characters correctly (for example, tabs and backspaces), use the pr command to preprocess the
le data before invoking lp. lp translates unrecognizable control characters to blank characters.
EXAMPLES
1. To send an OSS text le to a printer using the destination-searching algorithm, enter:
cat le | lp
If the operation is successful, the exit status 0 is returned and a message,
stdin is routed to printer_name with request id id_number
is written to the standard output le.
2. To print multiple les with the destination and the heading for the banner specied,
enter:
lp -d hplp -t "myprint" le1 /G/system/vol/subvol/le
If the operation is successful, the exit status 0 is returned and the following messages are
written to the standard output le:
file 1 is routed to hplp with request id: 1
/G/system/vol/subvol/file is routed to hplp with request id: 2
The header for the banner is "myprint."
EXIT VALUES
The following exit values are returned:
0 All input les were processed successfully.
>0 No output device was available, or an error occurred.
RELATED INFORMATION
Commands: cancel(1), lpstat(1).
STANDARDS CONFORMANCE
Spooling is a Guardian operation.
Extensions have been added to the lp command in order to support the Guardian environment.
527188-004 Hewlett-Packard Company 573