Command Reference Guide

Platform LSF Command Reference 217
-t
Turns on the timing option. The amount of time each subsequent command takes
to execute is displayed.
host_name Executes subsequent commands on the specified host.
-h Prints command usage to stderr and exits.
-V Prints LSF release version to stderr and exits.
Usage
The ch command interprets the following built-in commands:
cd [directory_name] Changes the current working directory to the specified directory. If a directory is
not specified, changes to the user’s home directory by default.
ch [host_name] Changes the current working host to the specified host. If a host is not specified,
changes to the home host by default.
post [command [argument ...]]
Posts the specified command for execution in the background on the current
working host.
ch assigns a unique task ID to this command and displays this ID,
then continues to interact with the user. However, the output of background jobs
may disturb the screen. You can post multiple commands on one host or on
different hosts. When a previously posted command is completed,
ch reports its
status to the standard error. If a command is not specified,
ch displays all currently
running background commands.
contact task_ID Brings a previously posted background command into the foreground. task_ID is
the ID returned by the
post command. Standard input is now passed to this
foreground command. You cannot put an active foreground job into the
background. A command that has been brought into the foreground with the
contact command cannot be put back into the background.
exit Exits ch if there are no posted commands running. Typing an EOF character
(usually
CTRL-D but may be set otherwise, see stty(1)) forces ch to exit;
uncompleted posted commands are killed.
Limitations
Currently, the ch command does not support script, history, nor alias.
The
ch prompt is always the current working host:current working directory
followed by a > (right angle bracket) character. If the
ch session is invoked by a shell
that supports job control (such as
tcsh or ksh), CTRL-Z suspends the whole ch
session. The exit status of a command line is printed to
stderr if the status is
non-zero.
See also
lsrun(1), rsh(1), stty(1)