LSF Version 7.3 - Administering Platform LSF
Interactive Tasks
606 Administering Platform LSF
Run tasks on hosts specified by a file
lsgrun -f host_file 1 The lsgrun -f host_file option reads the host_file file to get a list of hosts on
which to run the task.
Interactive Tasks
LSF supports transparent execution of tasks on all server hosts in the cluster. You
can run your program on the best available host and interact with it just as if it were
running directly on your workstation. Keyboard signals such as
CTRL-Z and CTRL-C
work as expected.
Interactive tasks communicate with the user in real time. Programs like
vi use a
text-based terminal interface. Computer Aided Design and desktop publishing
applications usually use a graphic user interface (GUI).
This section outlines issues for running interactive tasks with the non-batch
utilities
lsrun, lsgrun, etc. To run interactive tasks with these utilities, use the -i
option.
For more details, see the
lsrun(1) and lsgrun(1) man pages.
In this section
◆ Interactive tasks on remote hosts on page 606
◆ Interactive processing and scheduling policies on page 607
◆ Shared files and user IDs on page 607
◆ Shell mode for remote execution on page 607
◆ Run windows on page 607
◆ Redirect streams to files on page 607
Interactive tasks on remote hosts
Job controls When you run an interactive task on a remote host, you can perform most of the
job controls as if it were running locally. If your shell supports job control, you can
suspend and resume the task and bring the task to background or foreground as if
it were a local task.
For a complete description, see the
lsrun(1) man page.
Hiding remote
execution
You can also write one-line shell scripts or csh aliases to hide remote execution. For
example:
#!/bin/sh
# Script to remotely execute mytask
exec lsrun -m hostD mytask
or
alias mytask "lsrun -m hostD mytask"