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:
-
Batch Manager provides two methods for adding/deleting shell names for a batch queue:
-
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.
-
If you are modifying an existing batch queue, select Queue > Properties, and then select the Shells tab from the Queue Properties Dialog Box.
-
-
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.
-
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.
-
Click OK.
Using the command line:
-
Start qmgr.
-
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:
-
Use the BatchGetQueueInfo function to obtain the BATCH_QUEUE_INFO_2 structure.
-
Edit the v.batch.shell_list structure to add or remove the shell.
-
Use the BatchSetQueueInfo function with the BATCH_QUEUE_INFO_2 structure to set the new shell names.