You are here: Workload > Creating or Editing a Job Submission Script

3.8 Creating or Editing a Job Submission Script

You may need to edit a job submission script when creating a job. See Job Submission Script for more information.

Do the following:

  1. If you have not already done so, click Customize Script on the Create Job page. The Script Builder appears.
  2. Click to enlarge

  3. Enter the script in the pane on the left side of the Script Builder. To assist you in building your script, there is a list of Moab variables on the right side of the Script builder that you can drag and drop into your script. Hover the mouse over the variable to view its description. When used in the script, the variables shown in the right pane are highlighted and the number of times the variable is used in this script is displayed.
  4. Click to enlarge

    Another method for adding variables to a script is to type Ctrl+Space when editing a script in the left pane. You can select the variables directly in this list instead of having to drag them from the right pane.

    Click to enlarge

    In addition to Moab variables, the list includes Custom Inputs, which are defined in the Custom Settings section of the job template, and Moab environment variables.

    Click to enlarge

    You can also import a script from a file by clicking Import and selecting the file containing the script.

  5. When you are done editing your script, click Done Editing to save.
  6. If you want to export a script for use in other jobs or job templates, click Export and enter a file name for the script file.

Related Topics 

© 2017 Adaptive Computing