lseligible

Displays whether a task is eligible for remote execution.

Synopsis

lseligible [-r] [-q] [-s] task_name
lseligible [-h | -V]

Description

By default, only tasks in the remote task list are considered eligible for remote execution.

Options

-q
Quiet mode. Displays only the resource requirement string that is defined for the task. The string ELIGIBLE or NON-ELIGIBLE is omitted.
-r
Remote mode. Considers eligible for remote execution any task not included in the local task list.
-s
Silent mode. No output is produced. The -q and -s options are useful for shell scripts that operate by testing the exit status.
task_name
Specify a command.
-h
Prints command usage to stderr and exits.
-V
Prints LSF release version to stderr and exits.

Output

If the task is eligible, the string ELIGIBLE followed by the resource requirements that are associated with the task are printed to stdout. Otherwise, the string NON-ELIGIBLE is printed to stdout.

If the lseligible command prints ELIGIBLE with no resource requirements, the task has the default requirements of CPU consumption and memory usage.

Diagnostics

The lseligible command has the following exit statuses:
0
Task is eligible for remote execution.
1
Command is to be run locally.
-1
Syntax errors.
-10
A failure is detected in the LSF system.

See also

ls_eligible, lsrtasks