send files to a printer (POSIX)
lp [-c] [-d name] [-P name] [-n copies] [file...]
If a server is not specified, the utility will use the spooler identified in the LPSRVR environment variable, or /qnx/spooler if LPSRVR is not set.
If a queue is not specified, lp will use the queue identified in the LPDEST environment variable, or the first queue defined in the setup file of the spooler being used if LPDEST is not set.
For more detailed discussion, see Ch. 9, "Print Spooling," in the QNX Installation & Configuration manual.
Print the file myfile:
lp myfile
Print multiple files with headers:
pr file1 file2 | lp
The lp utility enqueues a file into a print spooler queue. The default printer is used, unless one is specified with the -P name option. The actual writing of files to the output device may occur after lp successfully exits.