module: command not found
Problem
A job on the supercomputers fails immediately with the message "module: command not found
".
Solution
If your Slurm script requires operations related to modules, a shell in "login mode" is required so that the module command can be located.
The first line (the shebang) should read
#!/bin/bash --login
to prevent the problem (the option "-l
" can be used in equivalence to "--login
").