LSF_REMOTE_COPY_CMD

Syntax

LSF_REMOTE_COPY_CMD="copy_command"

Description

UNIX only. Specifies the shell command or script to use with the following LSF commands if RES fails to copy the file between hosts.

  • lsrcp
  • bsub –i, –f, –is, -Zs ¨Ci(s)
  • bmod -Zs

By default, rcp is used for these commands.

There is no need to restart any daemons when this parameter changes.

For example, to use scp instead of rcp for remote file copying, specify:

LSF_REMOTE_COPY_CMD="scp -B -o 'StrictHostKeyChecking no'"

You can also configure ssh options such as BatchMode, StrictHostKeyChecking in the global SSH_ETC/ssh_config file or $HOME/.ssh/config.

When remote copy of a file via RES fails, the environment variable LSF_LSRCP_ERRNO is set to the system defined error number. You can use this variable in a self-defined shell script executed by lsrcp. The script can do the appropriate cleanup, recopy, or retry, or it can just exit without invoking any other copy command.

LSF automatically appends two parameters before executing the command:
  • The first parameter is the source file path.
  • The second parameter is the destination file path.

Valid values

Values are passed directly through. Any valid scp, rcp, or custom copy commands and options are supported except for compound multi-commands. For example, set LSF_REMOTE_COPY_CMD="scp -B -o 'StrictHostKeyChecking no'".

To avoid a recursive loop, the value of LSF_REMOTE_COPY_CMD must not be lsrcp or a shell script executing lsrcp.

Default

Not defined.