LinuxCommandLibrary

cupsaccept

Enable a printer to accept print jobs

TLDR

Accept print jobs to the specified destinations

$ cupsaccept [destination1 destination2 ...]
copy

Specify a different server
$ cupsaccept -h [server] [destination1 destination2 ...]
copy

SYNOPSIS

cupsaccept [-E] [-h server[:port]] destination(s)

PARAMETERS

-E
    Forces encryption when connecting to the server.

-h server[:port]
    Specifies an alternate server and port to connect to.

destination(s)
    The name(s) or URI(s) of the printer or class to accept jobs for. Multiple destinations can be specified.

DESCRIPTION

The `cupsaccept` command allows a printer or printer class (destination) to accept new print jobs. This is useful to re-enable a printer after it has been disabled for maintenance or troubleshooting. When a destination is accepting jobs, CUPS will queue and process incoming print requests. A destination can be specified by name or URI. CUPS also has a `cupsreject` command which disables a destination from receiving jobs. This command manages the printer's accepting state, influencing whether new print jobs are enqueued for that destination. The command typically requires administrator privileges to execute successfully, and it interacts directly with the CUPS print spooler system.

Successful execution of this command will result in the specified destination being able to receive and process print jobs. To make it effective, ensure that the correct destination name or URI is provided.

USAGE EXAMPLES

To allow jobs to be sent to a printer named 'MyPrinter':
cupsaccept MyPrinter

To allow jobs to be sent to printer 1 and printer 2 using encryption:
cupsaccept -E printer1 printer2

SEE ALSO

Copied to clipboard