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.

Chapter 32<br />

Interactive Jobs with bsub<br />

Split stdout and<br />

stderr<br />

If in your environment there is a wrapper around bsub and <strong>LSF</strong> commands so<br />

that end-users are unaware of <strong>LSF</strong> and <strong>LSF</strong>-specific options, you redirect<br />

standard output and standard error of batch interactive jobs to a file with the<br />

> operator.<br />

By default, both standard error messages and output messages for batch<br />

interactive jobs are written to stdout on the submission host.<br />

For example:<br />

% bsub -I myjob 2>mystderr 1>mystdout<br />

In the above example, both stderr and stdout are written to mystdout.<br />

To redirect both stdout and stderr to different files, set<br />

<strong>LSF</strong>_INTERACTIVE_STDERR=y in lsf.conf or as an environment variable.<br />

For example, with <strong>LSF</strong>_INTERACTIVE_STDERR set:<br />

% bsub -I myjob 2>mystderr 1>mystdout<br />

stderr is redirected to mystderr, and stdout to mystdout.<br />

See the <strong>Platform</strong> <strong>LSF</strong> Reference for more details on<br />

<strong>LSF</strong>_INTERACTIVE_STDERR.<br />

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

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

Saved successfully!

Ooh no, something went wrong!