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.

Customizing Cross-<strong>Platform</strong> Signal Conversion<br />

Default signal conversion<br />

Custom signal conversion<br />

Chapter 31<br />

Configuring Job Controls<br />

<strong>LSF</strong> supports signal conversion between UNIX and Windows for remote<br />

interactive execution through RES.<br />

On Windows, the CTRL+C and CTRL+BREAK key combinations are treated as<br />

signals for console applications (these signals are also called console control<br />

actions).<br />

<strong>LSF</strong> supports these two Windows console signals for remote interactive<br />

execution. <strong>LSF</strong> regenerates these signals for user tasks on the execution host.<br />

In a mixed Windows/UNIX environment, <strong>LSF</strong> has the following default<br />

conversion between the Windows console signals and the UNIX signals:<br />

Windows<br />

CTRL+C<br />

CTRL+BREAK<br />

UNIX<br />

SIGINT<br />

SIGQUIT<br />

For example, if you issue the lsrun or bsub -I commands from a Windows<br />

console but the task is running on an UNIX host, pressing the CTRL+C keys<br />

will generate a UNIX SIGINT signal to your task on the UNIX host. The<br />

opposite is also true.<br />

For lsrun (but not bsub -I), <strong>LSF</strong> allows you to define your own signal<br />

conversion using the following environment variables:<br />

◆ <strong>LSF</strong>_NT2UNIX_CLTRC<br />

◆ <strong>LSF</strong>_NT2UNIX_CLTRB<br />

For example:<br />

◆ <strong>LSF</strong>_NT2UNIX_CLTRC=SIGXXXX<br />

◆ <strong>LSF</strong>_NT2UNIX_CLTRB=SIGYYYY<br />

Here, SIGXXXX/SIGYYYY are UNIX signal names such as SIGQUIT, SIGTINT,<br />

etc. The conversions will then be: CTRL+C=SIGXXXX and<br />

CTRL+BREAK=SIGYYYY.<br />

If both <strong>LSF</strong>_NT2UNIX_CLTRC and <strong>LSF</strong>_NT2UNIX_CLTRB are set to the same<br />

value (<strong>LSF</strong>_NT2UNIX_CLTRC=SIGXXXX and<br />

<strong>LSF</strong>_NT2UNIX_CLTRB=SIGXXXX), CTRL+C will be generated on the Windows<br />

execution host.<br />

For bsub -I, there is no conversion other than the default conversion.<br />

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

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

Saved successfully!

Ooh no, something went wrong!