'module: command not found' in salloc for tcsh users

Problem

When the user obtains a Slurm job allocation using salloc within a tcsh environment, by default the "module" command will not be found. The reason for the issue is that on SuSE-Linux based systems, many startup files are only read if the CSHRCREAD environment variable does not exist. The environment variable must be explicitly removed to allow salloc to copy the environment to the job.

$ module avail
module: Command not found.


Solution

Prior to obtaining a job allocation via salloc, execute the following:

unsetenv CSHRCREAD



Filter by label

There are no items with the selected labels at this time.