Platform LSF Administration Guide Version 6.2
Chapter 45
Using lstcsh
Administering Platform LSF
633
Task Control
Task control in lstcsh is the same as in tcsh except for remote background tasks.
lstcsh numbers shell tasks separately for each execution host.
jobs command
The output of the built-in command jobs lists background tasks together with their
execution hosts. This break of transparency is intentional to give you more control over
your background tasks.
%
sleep 30 @hostD &
<< remote execution on hostD >>
[1] 27568
%
sleep 40 @hostD &
<< remote execution on hostD >>
[2] 10280
%
sleep 60 @hostB &
<< remote execution on hostB >>
[1] 3748
%
jobs
<hostD>
[1] + Running sleep 30
[2] Running sleep 40
<hostB>
[1] + Running sleep 60
Bringing a remote background task to the foreground
To bring a remote background task to the foreground, the host name must be specified
together with
@, as in the following example:
%
fg %2 @hostD
<< remote execution on hostD >>
sleep 40