[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 2

enable Command

The enable command includes information for AIX Print Subsystem enable and the System V Print Subsystem enable.

AIX Print Subsystem enable Command

Purpose

Enables printer queue devices.

Syntax

enable PrinterName ...

Description

The enable command brings the printer queue devices specified by the PrinterName parameter on line, or enables the printer queue devices to be used with the system. If the printer is remote, enable only enables the transfer of requests to the remote system. The enable command must be run again on the remote system. The lpstat-p command provides status of the printers.

When changes are made to the attributes of a print device, they are recognized by enable. Therefore to change the definition or allocation for a device, you must disable the printer on that device, change the device, and then run enable. The new device attributes becomes effective when you run enable.

  1. You must have root user authority or belong to the printq group to run this command.
  2. If you enter enable -?, the system displays the following error message:

    enq: (FATAL ERROR): 0781-048: Bad queue or device name: -?

Examples

To enable the print queue device lp0:lpd0, enter:

enable lp0:lpd0

Files

/etc/qconfig Contains the queue configuration file.
/etc/qconfig.bin Contains the digested, binary version of the /etc/qconfig file.
/usr/sbin/qdaemon Contains the queuing daemon.
/var/spool/lpd/qdir/* Contains the queue requests.
/var/spool/lpd/stat/* Contains information on the status of the devices.
/var/spool/qdaemon/* Contains temporary copies of enqueued files.

Related Information

The cancel command, disable command, lp command, lpstat command.

Starting and Stopping a Print Queue in AIX 5L Version 5.2 Guide to Printers and Printing.

System V Print Subsystem enable Command

Purpose

Enable LP printers

Syntax

enable printers

Description

The enable command activates the named printers, enabling them to print requests submitted by the lp command. If the printer is remote, the command will only enable the transfer of requests to the remote system; the enable command must be run again, on the remote system, to activate the printer. (Run lpstat -p to get the status of printers.)

When changes are made to the attributes of a print device, they are recognized by enable. Therefore to change the definition or allocation for a device, you must disable the printer on that device, change the device, and then run enable. The new device attributes will become effective when enable is executed.

Printer names are system-defined words and as such should be restricted to uppercase and lowercase ASCII characters.

Files

/var/spool/lp/*

References

The lp command, lpstat command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]