System Administration Guide: Solaris Printing

ProcedureHow to Cancel a Print Request From a Specific User

  1. (Optional) Become superuser, lp, or assume an equivalent role if you are going to cancel the print requests of other users.

  2. Cancel a print request from a specific user.


    $ cancel -u user-list [printer-name]
    -u user-list

    Cancels the print request for a specified user.

    user-list can be one or more user names. Use a space or a comma to separate user names. If you use spaces, enclose the list of names in quotation marks

    printer-name

    Specifies the printer for which you want to cancel the print requests for a specified user.

    printer-name can be one or more printer names. Use a space or a comma to separate printer names. If you use spaces, enclose the list of printer names in quotation marks.

    If you don't specify the printer-name, the print requests for the specified user is canceled on all printers.


Example 5–17 Canceling a Print Request From a Specific User

The following example shows how to cancel all the print requests submitted by the user george on the printer luna.


# cancel -u george luna
request "luna-23" cancelled

The following example shows how to cancel all the print requests submitted by the user george on all printers.


# cancel -u george
request "asteroid-3" cancelled
request "luna-8" cancelled