Host redirection

Host redirection overrides the task lists, so you can force commands from your local task list to execute on a remote host or override the resource requirements for a command.

You can explicitly specify the eligibility of a command-line for remote execution using the @ character. It may be anywhere in the command line except in the first position (@ as the first character on the line is used to set the value of shell variables).

You can restrict who can use @ for host redirection in lstcsh with the parameter LSF_SHELL_AT_USERS in lsf.conf. See the LSF Configuration Reference for more details.


hostname @hostD
<< remote execution on hostD >> 
hostname @/type==linux
<< remote execution on hostB >> 

@ character


@ followed by nothing means that the command line is eligible for remote execution.


@ followed by a host name forces the command line to be executed on that host.


@ followed by the reserved word local forces the command line to be executed on the local host only.


@ followed by / and a resource requirement string means that the command is eligible for remote execution and that the specified resource requirements must be used instead of those in the remote task list.

For ease of use, the host names and the reserved word local following @ can all be abbreviated as long as they do not cause ambiguity.

Similarly, when specifying resource requirements following the @, it is necessary to use / only if the first requirement characters specified are also the first characters of a host name. You do not have to type in resource requirements for each command line you type if you put these task names into remote task list together with their resource requirements by running lsrtasks.