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.

Task Control<br />

jobs command<br />

Chapter 43<br />

Using lstcsh<br />

Task control in lstcsh is the same as in tcsh except for remote background<br />

tasks. lstcsh numbers shell tasks separately for each execution host.<br />

The output of the built-in command jobs lists background tasks together with<br />

their execution hosts. This break of transparency is intentional to give you<br />

more control over your background tasks.<br />

% sleep 30 @hostD &<br />

><br />

[1] 27568<br />

% sleep 40 @hostD &<br />

><br />

[2] 10280<br />

% sleep 60 @hostB &<br />

><br />

[1] 3748<br />

% jobs<br />

<br />

[1] + Running sleep 30<br />

[2] Running sleep 40<br />

<br />

[1] + Running sleep 60<br />

Bringing a remote background task to the foreground<br />

To bring a remote background task to the foreground, the host name must be<br />

specified together with @, as in the following example:<br />

% fg %2 @hostD<br />

><br />

sleep 40<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 557

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

Saved successfully!

Ooh no, something went wrong!