A shell is a program that can run a specific type of script; for example, cmd.exe is a shell that can run .bat scripts. You can associate a list of shells with each batch queue. The shell list allows you to specify a shell from the list without knowing where the actual shell resides on the computer.
When you associate a list of shells with a batch queue, users can choose one of these
shells from the list, specify a full path to another shell, or use a shell in the
PATH environment variable for the user to whom the job is mapped.
To add a shell to a batch queue:
-
Open Intergraph Batch Manager.
-
Click on the batch queue listed in the server view, or select the queue view for that queue.
-
Select Queue > Properties.
The Queue Properties dialog box displays.
-
Select the Shells tab.
-
Under Shell Configuration, type the name of the shell into the Name box, then type the path to the shell into the Location box.
-
Click Add.
The name and location of the shell display in the Shell dialog box. If you want to set a default shell for the queue, proceed to the next step. Otherwise, skip to step 8.
You may want to specify the default shell for a batch queue on your system. The default shell is the one run when a user submits a job, but does not explicitly request a shell. When you set a default shell for a batch queue, you must explicitly select another shell if you want to submit a job to run a script that uses another shell. If you want to submit executable programs (.EXE files) to a batch queue, do not set a default shell for that queue, or set the default shell to be CMD.EXE.
-
Select the shell in the Shell List box; then select Default.
The name of the shell displays in the Default Shell box.
-
Click OK.
You must have manager privileges on the batch server to set the default shell for
a batch queue.