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.

Automatic Time-based Configuration<br />

Creating if-else constructs<br />

If-else<br />

Elif<br />

Verifying configuration<br />

The if-else construct can express single decisions and multi-way decisions by<br />

including elif statements in the construct.<br />

The syntax for constructing if-else expressions is:<br />

#if time(expression)<br />

statement<br />

#else<br />

statement<br />

#endif<br />

The #endif part is mandatory and the #else part is optional.<br />

For syntax of a time expression, see “Specifying Time Expressions” on<br />

page 170.<br />

The #elif expressions are evaluated in order. If any expression is true, the<br />

associated statement is used, and this terminates the whole chain.<br />

The #else part handles the default case where none of the other conditions<br />

are satisfied.<br />

When you use #elif, the #else and #endif parts are mandatory.<br />

#if time(expression)<br />

statement<br />

#elif time(expression)<br />

statement<br />

#elif time(expression)<br />

statement<br />

#else<br />

statement<br />

#endif<br />

Use the following <strong>LSF</strong> commands to verify configuration:<br />

◆ bparams(1)<br />

◆ busers(1)<br />

◆ bhosts(1)<br />

◆ bqueues(1)<br />

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