You are here: References > Job Scripts

5.4 Job Scripts

This topic provides information about the different job scripts, including customization options (where applicable).

In this topic

5.4.1 Nitro Job Script

The nitro_job.sh script is located in the /opt/nitro/etc/ directory.

Typically the nitro_job.sh script is customized by the system administrator and executed by the nitrosub command. This job script is used for static jobs, if resources are not in a range. For dynamic jobs, it sets up the initial resource request (minimum resource value in the range).

Alternatively, the system administrators can modify the nitro_job.sh script and then have authorized users copy and customize the script for their task file. This script is then executed using the resource manager's job submission command (for example, Torque's qsub). This functionality is similar to the Nitro functionality prior to version 2.1.

The nitro_job.sh script:

In the nitro_job.sh script, you can also customize the launch_nitro.sh script.

5.4.2 Worker Job Script

The worker_job.sh script is located in the /opt/nitro/etc/ directory.

The worker_job.sh script is executed only by the nitrosub command. This job script is used for the dynamic portion of dynamic jobs (resources after the initial request up to the maximum value).

5.4.3 Moab/Torque Customization Commands and Options

If using Moab/Torque, be aware of the following:

Example: Setting Environment Variables at Job Submission

The "-v" option in Moab's msub command sets environment variables before calling the user job script. The user job script inherits these environment variables.

The user job script can add to or overwrite any environment variable defined in msub's "-v" option.

Example: Setting Environment Variables In the User Job Script

Related Topics 

© 2017 Adaptive Computing