25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Command-Level Job Starters<br />

Command-Level Job Starters<br />

A command-level job starter allows you to specify an executable file that does<br />

any necessary setup for the job and runs the job when the setup is complete.<br />

You can select an existing command to be a job starter, or you can create a<br />

script containing a desired set of commands to serve as a job starter.<br />

This section describes how to set up and use a command-level job starter to<br />

run interactive jobs.<br />

Command-level job starters have no effect on batch jobs, including interactive<br />

batch jobs. See Chapter 32, “Interactive Jobs with bsub” for information on<br />

interactive batch jobs.<br />

A job starter can also be defined at the queue level using the JOB_STARTER<br />

parameter. Only the <strong>LSF</strong> administrator can configure queue-level job starters.<br />

See “Queue-Level Job Starters” on page 376 for more information.<br />

<strong>LSF</strong>_JOB_STARTER environment variable<br />

Use the <strong>LSF</strong>_JOB_STARTER environment variable to specify a command or<br />

script that is the job starter for the interactive job. When the environment<br />

variable <strong>LSF</strong>_JOB_STARTER is defined, RES invokes the job starter rather than<br />

running the job itself, and passes the job to the job starter as a command-line<br />

argument.<br />

Using command-level job starters<br />

UNIX<br />

Windows<br />

The job starter is invoked from within a Bourne shell, making the commandline<br />

equivalent:<br />

/bin/sh -c "$<strong>LSF</strong>_JOB_STARTER command [argument ...]"<br />

where command and argument are the command-line arguments you<br />

specify in lsrun, lsgrun, or ch.<br />

RES runs the job starter, passing it your commands as arguments:<br />

<strong>LSF</strong>_JOB_STARTER command [argument ...]<br />

374<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!