Command Reference Guide

Installing and Running Platform LSF Session Scheduler 305
If only a file name is specified, LSF writes the output file to the current working
directory. If the current working directory is not accessible on the execution host
after the task starts, LSF writes the standard output file to
/tmp/.
If the parameter LSB_STDOUT_DIRECT in
lsf.conf is set to Y or y, the standard
output of a task is written to the file you specify as the task runs. If
LSB_STDOUT_DIRECT is not set, it is written to a temporary file and copied to
the specified file after the task finishes.
You can use the special characters %J, %I, %T, %X in the name of the input file. %J
is replaced by the job ID. %I is replaced by the job array index, %T is replaced with
the task ID, and %X is replaced by the task array index.
NOTE: The file path can contain up to 4094 characters including the directory, file name, and
expanded values for %J, %I, %T and %X
-M mem_limit
Sets a per-process (soft) memory limit for all the processes that belong to the task
(see getrlimit(2)).
By default, the limit is specified in KB. Use LSF_UNIT_FOR_LIMITS in
lsf.conf
to specify a larger unit for the limit (MB, GB, TB, PB, or EB).
You should only set a task level memory limit if it less than the job limit.
-Q "exit_code ..."
Task requeue exit values. Enables automatic task requeue and sets the
LSB_EXIT_REQUEUE environment variable. Separate multiple exit codes with
spaces. The output from the failed run is not saved, and the user is not notified by
LSF.
-W [minutes:]seconds
Sets the run time limit of the task. If a task runs longer than the specified run limit,
the task is sent a SIGKILL signal.
The run limit is in the form of [minutes:]seconds. The seconds can be specified as a
number greater than 59. For example, three and a half minutes can either be
specified as 3:30, or 210. The run limit you specify is the absolute run time.
-tasks task_definition_file
Specify tasks through a task definition file.
command [argument]
The command can be anything that is provided to a UNIX Bourne shell (see sh(1)).
The command is assumed to begin with the first word that is not part of a option.
All arguments that follow command are provided as the arguments to the
command.
The job command can be up to 4094 characters long.
-h
Prints command usage to stderr and exits.
-V
Prints release version to stderr and exits.