lseligible

lseligible

displays whether a task is eligible for remote execution

Synopsis

lseligible [-r][-q][-s]task

lseligible [-h -V]

Description

Displays whether the specified task is eligible for remote execution.

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

Options

-qQuiet mode. Displays only the resource requirement string defined for the task. The string ELIGIBLE or NON-ELIGIBLE is omitted.

-rRemote mode. Considers eligible for remote execution any task not included in the local task list.

-sSilent mode. No output is produced. The -qand -soptions are useful for shell scripts which operate by testing the exit status (see DIAGNOSTICS).

task Specify a command.

-hPrints command usage to stderr and exits.

-VPrints LSF release version to stderr and exits.

Output

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

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

Diagnostics

lseligible has the following exit statuses:

0 Task is eligible for remote execution

1 Command is to be executed locally

-1 Syntax errors

-10 A failure is detected in the LSF system

See also

ls_eligible(3), lsrtasks(1), lsf.task(5)

232Platform LSF Command Reference