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.

Submitting Interactive Jobs<br />

Submitting an interactive job by using a pseudo-terminal<br />

Submission of interaction jobs using pseudo-terminal is not supported for<br />

Windows for either lsrun or bsub <strong>LSF</strong> commands.<br />

bsub -Ip To submit a batch interactive job by using a pseudo-terminal, use the bsub -<br />

Ip option.<br />

When you specify the -Ip option, bsub submits a batch interactive job and<br />

creates a pseudo-terminal when the job starts. Some applications such as vi<br />

for example, require a pseudo-terminal in order to run correctly.<br />

For example:<br />

% bsub -Ip vi myfile<br />

Submits a batch interactive job to edit myfile.<br />

bsub -Is<br />

To submit a batch interactive job and create a pseudo-terminal with shell mode<br />

support, use the bsub -Is option.<br />

When you specify the -Is option, bsub submits a batch interactive job and<br />

creates a pseudo-terminal with shell mode support when the job starts. This<br />

option should be specified for submitting interactive shells, or applications<br />

which redefine the CTRL-C and CTRL-Z keys (for example, jove).<br />

Example:<br />

% bsub -Is csh<br />

Submits a batch interactive job that starts up csh as an interactive shell.<br />

Submitting an interactive job and redirect streams to files<br />

bsub -i, -o, -e<br />

It is possible to use the -I option together with the -i, -o, and -e options of<br />

bsub to selectively redirect streams to files. For more details, see the bsub(1)<br />

man page.<br />

For example:<br />

% bsub -I -q interactive -e job.err lsmake<br />

Saves the standard error stream in the job.err file, while standard input and<br />

standard output come from the terminal.<br />

402<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!