Script Task

The Script Task is used to execute contents of a shell script on the execution system.

Script Specification

In order to create a Script Task, select a job group and choose "Add Script" from the "Job Preparation" menu. A new task will be added to the tree and the main panel will switch to the Script Task panel.




In the Name field you can enter a name for the Script Task which will be used in the Job Preparation tree.

There are local and remote sources for the specification of a script:

The final contents of the ScriptEditor will be automatically transferred as a script to the Uspace before getting executed.

Script Shell

The execution shell of your script is selected in the Type combo box. Of course, if your script declares a different shell itself this gets precedence (according to the rules of Unix).




Script Options

Other script options are set in the Options panel:




In the Command line field the script parameters are set which are put on the command line when executing the script.

Enter a list of environment settings (separated by blanks) in the Environment field.

The support of the Runtime Options depend on the NJS server configuration. Please ask your UNICORE administrator for details.

Finally specify file re-directions for the scripts' stdin, stdout, or stderr. These have to be supported by related file imports and exports. If you do not declare stdout and stderr re-directions the results will be presented in the Job Monitoring GUI.

File Imports and File Exports

In the File Imports panel you can declare file transfers to the remote Job Directory (Uspace) which are relevant to the execution of the script, e.g. to provide (re-directed) input files.

In the File Exports panel you can declare file transfers from the remote Job Directory (Uspace), e.g. to receive (re-directed) output files.

The procedure for defining imports and exports is explained in detail for the independent Import/Export Task. There are three differences with respect to the independent tasks: