HP 3000 Manuals

Control Printer Access by Starting the SPOOLER [ Controlling System Activity ] MPE/iX 5.0 Documentation


Controlling System Activity

Control Printer Access by Starting the SPOOLER 

Entering the SPOOLER DEV=;START command with a devclass parameter opens a
queue for the specified device class, but does not start a spooler
process for any of the devices in that class.

On the other hand, entering the SPOOLER DEV=;START command with an ldev 
parameter not only spools the specified device, but opens a queue for all
device classes which include that device.  Note, though, that no device
in any other device class is spooled.  Only the device specified by ldev 
is spooled.

 *  If the command is entered with a devclass parameter, the status of
    the ldev queue is unchanged.

 *  If the command is entered with an ldev parameter only, the status of
    the ldev queue is OPEN.

 *  If the command is entered with both ldev and SHUTQ parameters, the
    status of the ldev queue is SHUT.

Starting the Spooler 

To open the spool queue and start a spooler process for each device in
devclass LP, enter:

     SPOOLER;DEV=LP;START Return 

To start spooling on logical device 12, only (and open a spool queue for
it), enter:

     SPOOLER DEV=12;START;SHOW Return 

The system displays:
_________________________________________________________________
|                                                               |
|                                                               |
|      LDEV   DEV        SPSTATE   QSTATE   OWNERSHIP   SPOOLID |
|                                                               |
|      12     00000012   START     OPENED   OUT SPOOLER         |
|                                                               |
_________________________________________________________________

Control Printer Access by Stopping the SPOOLER 

The results of entering SPOOLER DEV=;STOP depend on the parameters used.
When entered with the devclass parameter, SPOOLER DEV=;STOP shuts the
queue for the specified device class.

When entered with the ldev parameter only, SPOOLER DEV=;STOP:

 *  Stops spooling to the specified device.

 *  Shuts the queue for the specified device.  No new files may be
    created.

 *  Changes the availability of the device to AVAIL. The device can be
    then allocated to a user as a "hot" printer.

When entered with both the ldev and OPENQ parameters, SPOOLER DEV=;STOP:

 *  Stops spooling to the specified device.

 *  Opens or keeps the queue open for the specified device.

SPOOLER DEV=;STOP with ldev interrupts the spooling process that owns the
specified logical device.  If the process is printing a file at the time,
printing stops immediately and a trailer page is appended (providing
headers and trailers are enabled).  The file returns to the READY state
and the device is returned to the control of the system.  If the spooler
is not printing, the spooler process simply terminates and the device is
returned to the control of the system.

Stopping the Spooler 

To stop spooling and close the spool queue on ldev 28, enter:

     SPOOLER DEV=28;STOP;SHOW Return 

The system displays:
_________________________________________________________________
|                                                               |
|                                                               |
|      LDEV   DEV        SPSTATE   QSTATE   OWNERSHIP   SPOOLID |
|                                                               |
|      28     00000028   *STOP     CLOSED   OUT SPOOLER         |
|                                                               |
_________________________________________________________________

The asterisk before the spooler state (*STOP) denotes that the spooler
process has not completed processing of the STOP command.

To close the spool queues and stop all spooling processes for each device
which is a member of the device class LP, enter:

     SPOOLER DEV=LP;STOP Return 

Control Printing by Suspending the Spooler 

The SPOOLER DEV=;SUSPEND command temporarily suspends the spooler process
but the spooled device remains spooled and the queue maintains its
current status (OPEN or SHUT). Note that the spooler process will retain
ownership of the device so that it cannot be accessed by any other
process.

Suspending the Spooler 

To cause logical device number 6 (a line printer) to stop printing
immediately, enter:

     SPOOLER DEV=6;SUSPEND;NOW 

To cause logical device number 6 (a line printer) to stop printing after
completion of the current file enter:

     SPOOLER DEV=6;SUSPEND;FINISH 



MPE/iX 5.0 Documentation