25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 29<br />

Job Starters<br />

Examples<br />

UNIX<br />

Windows<br />

If you define the <strong>LSF</strong>_JOB_STARTER environment variable using the following<br />

C-shell command:<br />

% setenv <strong>LSF</strong>_JOB_STARTER "/bin/sh -c"<br />

Then you run a simple C-shell job:<br />

% lsrun "’a.out; hostname’"<br />

The command that actually runs is:<br />

/bin/sh -c "/bin/sh -c ’a.out hostname’"<br />

The job starter can be a shell script. In the following example, the<br />

<strong>LSF</strong>_JOB_STARTER environment variable is set to the Bourne shell script<br />

named job_starter:<br />

$ <strong>LSF</strong>_JOB_STARTER=/usr/local/job_starter<br />

The job_starter script contains the following:<br />

#!/bin/sh<br />

set term = xterm<br />

eval "$*"<br />

If you define the <strong>LSF</strong>_JOB_STARTER environment variable as follows:<br />

% set <strong>LSF</strong>_JOB_STARTER=C:\cmd.exe /C<br />

Then you run a simple DOS shell job:<br />

C:\> lsrun dir /p<br />

The command that actually runs is:<br />

C:\cmd.exe /C dir /p<br />

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

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

Saved successfully!

Ooh no, something went wrong!