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.

Interactive Tasks<br />

Chapter 33<br />

Running Interactive and Remote Tasks<br />

<strong>LSF</strong> supports transparent execution of tasks on all server hosts in the cluster.<br />

You can run your program on the best available host and interact with it just<br />

as if it were running directly on your workstation. Keyboard signals such as<br />

CTRL-Z and CTRL-C work as expected.<br />

Interactive tasks communicate with the user in real time. Programs like vi use<br />

a text-based terminal interface. Computer Aided Design and desktop<br />

publishing applications usually use a graphic user interface (GUI).<br />

This section outlines issues for running interactive tasks with the non-batch<br />

utilities lsrun, lsgrun, etc. To run interactive tasks with these utilities, use the<br />

-i option.<br />

For more details, see the lsrun(1) and lsgrun(1) man pages.<br />

In this section ◆ “Interactive tasks on remote hosts” on page 419<br />

◆ “Interactive processing and scheduling policies” on page 419<br />

◆ “Shared files and user IDs” on page 420<br />

◆ “Shell mode for remote execution” on page 420<br />

◆ “Run windows” on page 420<br />

◆ “Redirecting streams to files” on page 421<br />

Interactive tasks on remote hosts<br />

Job controls<br />

Hiding remote<br />

execution<br />

When you run an interactive task on a remote host, you can perform most of<br />

the job controls as if it were running locally. If your shell supports job control,<br />

you can suspend and resume the task and bring the task to background or<br />

foreground as if it were a local task.<br />

For a complete description, see the lsrun(1) man page.<br />

You can also write one-line shell scripts or csh aliases to hide remote<br />

execution. For example:<br />

#!/bin/sh<br />

# Script to remotely execute mytask<br />

exec lsrun -m hostD mytask<br />

OR<br />

% alias mytask "lsrun -m hostD mytask"<br />

Interactive processing and scheduling policies<br />

<strong>LSF</strong> lets you run interactive tasks on any computer on the network, using your<br />

own terminal or workstation. Interactive tasks run immediately and normally<br />

require some input through a text-based or graphical user interface. All the<br />

input and output is transparently sent between the local host and the job<br />

execution host.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 419

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

Saved successfully!

Ooh no, something went wrong!