Adding and Deleting Batch Queue Shell Lists - Intergraph Batch Services - Help

Intergraph Batch Services Help

Language
English
Product
Intergraph Batch Services
Search by Category
Help

A batch queue can have a list of shells associated with it. These shells are programs that are able to run specific types of scripts. For example, CMD.EXE can run *.BAT scripts. Associating a list of shells with a queue in effect states that the queue can run only scripts that utilize the shells in the list.

You must have manager privileges to change the shell list for a queue.

Using Batch Manager:

  1. Batch Manager provides two methods for adding/deleting shell names for a batch queue:

    1. If you are creating a new batch queue, select Queue > Create, and then select the Shells tab.

      You must select Batch from the Queue Type box before you can access the Shells tab.

    2. If you are modifying an existing batch queue, select Queue > Properties, and then select the Shells tab from the Queue Properties Dialog Box.

  2. If you are adding shell names, key the new shell name into the Shell Configuration box.

    -OR-

    If you are removing shell names, select the shell name to be removed from the Shell List box.

  3. Select Add to add the shell name to the Shell List box.

    -OR-

    Select Remove to remove the shell name from the Shell List box.

  4. Click OK.

Using the command line:

  1. Start qmgr.

  2. Use the add shell_name command to add the shell name. Use the delete shell_name command to delete the shell name.

You can also use the set shell_name command to remove any shells from the named queue's shell list, and replace them with a specified list of shells.

Using the Batch API:

  1. Use the BatchGetQueueInfo function to obtain the BATCH_QUEUE_INFO_2 structure.

  2. Edit the v.batch.shell_list structure to add or remove the shell.

  3. Use the BatchSetQueueInfo function with the BATCH_QUEUE_INFO_2 structure to set the new shell names.