LSF Version 7.3 - Administering Platform LSF

Administering Platform LSF 605
Running Interactive and Remote Tasks
Run a task on a specific host
1 If you want to run your task on a particular host, use the lsrun -m option:
lsrun -m hostD mytask
Run a task by using a pseudo-terminal
Submission of interaction jobs using pseudo-terminal is not supported for
Windows for either
lsrun or bsub LSF commands.
Some tasks, such as text editors, require special terminal handling. These tasks must
be run using a pseudo-terminal so that special terminal handling can be used over
the network.
1 The -P option of lsrun specifies that the job should be run using a
pseudo-terminal:
lsrun -P vi
Run the same task on many hosts in sequence
The lsgrun command allows you to run the same task on many hosts, one after the
other, or in parallel.
1 For example, to merge the /tmp/out file on hosts hostA, hostD, and hostB into
a single file named
gout, enter:
lsgrun -m "hostA hostD hostB" cat /tmp/out >> gout
Run parallel tasks
lsgrun -p The -p option tells lsgrun that the task specified should be run in parallel. See
lsgrun(1) for more details.
1 To remove the /tmp/core file from all 3 hosts, enter:
lsgrun -m "hostA hostD hostB" -p rm -r /tmp/core