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

Running Interactive and Remote Tasks<br />

Script for automatically specifying resource requirements<br />

The above examples require the specification of resource requirement strings<br />

by users. You may want to centralize this such that all users use the same<br />

resource specifications.<br />

You can create a central script (for example lslaunch) and place it in the<br />

/lsf/bin directory. For example:<br />

#!/bin/sh<br />

lsrun -R "order[cpu:mem:login]" lsbg $@<br />

exit $?<br />

Which would simplify the command string to:<br />

lslaunch xterm -sb -ls -display your_PC:0.0<br />

Taking this one step further, you could have lsxterm:<br />

#!/bin/sh<br />

lsrun -R "order[cpu:mem:login]" lsbg xterm -sb -sl $@<br />

exit $?<br />

Which would simplify the command string to:<br />

lsxterm -display your_PC:0.0<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 425

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

Saved successfully!

Ooh no, something went wrong!