On our clusters, we typically find that an explicit source of the initialization dot files is need IF the default shell of the user submitting the job does _not_ match the shell being used to run the script. I.e., for sundry historical and other reasons, the "default" login shell for users on our cluster is tcsh, so if an user with login shell of tcsh submits a bash job script, they generally need to do an explicit "source ~/.profile".
On Fri, Jan 22, 2021 at 5:42 AM Gestió Servidors <sysadmin.c...@uab.cat> wrote: > Hello, > > > > I use “Environment Modules” (http://modules.sourceforge.net/) in my SLURM > cluster. In my scripts I do need to add an explicit “source > /soft/modules-3.2.10/Modules/3.2.10/init/bash”. However, in several > examples I have read about SLURM scripts, nobody comments that. So, have I > forgotten a parameter in SLURM to “capture” environment variables into the > script or is it a problem due to my distribution (CentOS-7)??? > > > > Thanks. > -- Tom Payerle DIT-ACIGS/Mid-Atlantic Crossroads paye...@umd.edu 5825 University Research Park (301) 405-6135 University of Maryland College Park, MD 20740-3831