lp
| Because RTE case folds the lp runstring by default, and because most options are |
| lowercase, lp will reverse the upper or lowercase of each character in the option. |
| For example, if a printer interface accepts option •BSDp", the lp runstring from |
| CI might be: |
| CI> lp |
Specify the priority of the request, an integer value from 0 to 7. Higher values | |
| indicate higher priority for the request. This value is used in determining the order |
| in which requests are printed. If not specified, the default priority for the |
| destination printer is used (set by lpadmin), or the highest default priority of all |
| printers that are a member of the destination class is used. |
Suppress informational messages such as •request id is ...". | |
Use the argument as a title on the banner page of the output. The title must be | |
| less than 80 characters, and must be surrounded by double quotes if it contains |
| blanks or commas. When executing lp from CI, use backward quotes to prevent |
| upshifting and commainsertion of the title. |
Write a message on your terminal when the request is printed. The notify | |
| program is used to write to all terminals on which sessions are logged in under your |
| user name. If the request is printed remotely then email is sent instead. By |
| default, no message is written. |
If the request is successfully created, lp assigns it a request ID, which it displays on the terminal. This request ID may be used as a parameter to several programs in the LP spool system, for example, to obtain information about the request (using the lpstat program), or to cancel the request (using the cancel program).
Return Status
lp returns the following status:$RETURN1 = the number of errors encountered; zero if none. $RETURN_S = the request ID assigned, if successful.
Examples
CI> lpPrint 3 copies of files black.lst and aybe.c on destination •lj3p", specifying printer interface option •cc".
CI> lpPrint each file named in file files.txt on the default destination, using the banner, •draft copy".
The lpalt and lp programs are identical executables. Only one of these program files needs to be a type 6 executable; the other may be, for example, a symbolic link to the type 6 file or a prototype ID segment for the type 6 file.
LP Spool System 215