IBM Support

How to avoid PATH environment variable of submission user gets overwritten by the configuration of C shell on execution host

Troubleshooting


Problem

On C shell of a submission host, add a directory of one command into PATH environment variable, run bsub to submit a job with the command as job. On the execution host, you can find the command in the specified directory, but the message "Command not found", is reported for the job.

Symptom

1. Check lsb.queues, find JOB_STARTER is set for normal queue as below:

JOB_STARTER = /bin/csh -c "%USRCMD"

2. Write a test.sh script in shared directory /shared/xxx and set execution permission for it. The test.sh script can be accessed and executed on submission and execution hosts.

3. On submission host, set PATH environment variable

>setenv PATH /shared/xxx:${PATH}

4. Run test.sh job on LSF, you can not find test.sh command.

>bsub -Is 'which test.sh'


Job <xxx> is submitted to default queue <interactive>.

<<Waiting for dispatch ...>>

<<Starting on host2>>

test.sh: Command not found.

[{"Product":{"code":"SSWRJV","label":"IBM Spectrum LSF"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"9.1.1","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
23 June 2018

UID

isg3T1027480