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 33<br />

Running Interactive and Remote Tasks<br />

Redirecting streams to files<br />

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

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

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

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

For example, to redirect both stdout and stderr to different files with the<br />

parameter set:<br />

% lsrun mytask 2>mystderr 1>mystdout<br />

The result of the above example is for stderr to be redirected to mystderr,<br />

and stdout to mystdout. Without <strong>LSF</strong>_INTERACTIVE_STDERR set, both<br />

stderr and stdout will be redirected 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> 421

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

Saved successfully!

Ooh no, something went wrong!