If you don’t wish to do the submission from the “somepath” directory you can 
use the following sbatch option to achieve what you are looking for.

      -D, --workdir=<directory>
              Set the working directory of the batch script to directory before 
it is executed.

Phil Eckert
LLNL


From: Thomas Johnson 
<[email protected]<mailto:[email protected]>>
Reply-To: slurm-dev <[email protected]<mailto:[email protected]>>
Date: Wednesday, July 9, 2014 at 7:31 PM
To: slurm-dev <[email protected]<mailto:[email protected]>>
Subject: [slurm-dev] Fwd: Can I stop slurm from copying a script to execution 
node




I am submitting a job with sbatch /somepath/test.sh

test.sh looks for a config files and other scripts in the same path e.g. 
/somepath/
/somepath/ is available to all submit and compute nodes.

but slurm copies the script to /var/lib/slurm-llnl/slurmd/etc/  before 
executing it. Thus it test.sh can't find the required config and scripts.

I'm changing over from sge where adding the -b y flag to qsub would stop sge 
from copying the script to the execution host.

Is there a similar solution for slurm?






Reply via email to