Команда lprm

Removes print requests from the print queue.

Синтаксис

lprm [ -P destination ] [ - ] [ request-ID] [user]

-P destinationThe name of the printer or class of printers (see lpadmin) from which to remove print requests. Specify destination using atomic, POSIX-style (server:destination), or Federated Naming Service (FNS) (.../service/printer/...) names.
-If a user specifies this option, removes all print requests owned by that user. If a super-user specifies this option, removes all requests in the print queue. Job ownership is determined by the user's login name and host name on the machine from which lpr was executed. See NOTES.
request-IDRemoves a specific print request. Specify request-ID as the job number (Job) associated with a print request and reported by lpq. See lpq.
userRemoves print requests associated with a specific user. Specify user as a valid user name. This option can only be used by a super-user.

Примеры

lprm -P killtree 385 - removes request-ID 385 from destination killtree.

Обратно к списку команд