Remove jobs from the printer queue (UNIX)
lprm [-P name] [-a] [jobnumber...] [user...]
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.
The lprm utility removes a job or jobs from a printer spool queue. If lprm is invoked with no arguments, it will abandon the currently active job, provided the user invoking the lprm utility owns the job or has appropriate privileges.
Specifying user names is useful only to the superuser (root). All other users can remove only their own jobs.
With the increasing amount of memory built into newer printers, pending jobs may be physically stored within the printer itself, and lprm may not be able to remove them. Once the job has been sent to the printer, it is too late to stop it using lprm.
TCP/IP lpr* utilities