Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_environment_modules [2019/10/09 15:14]
ktm5j
linux_environment_modules [2019/10/09 15:15] (current)
ktm5j
Line 74: Line 74:
 If you write shell scripts or slurm batch files that make use of these software packages, remember that you must still load modules from inside of your script. ​ For example, your script must contain the line ''​%%module load python3%%''​ before you can use python from inside of your script. If you write shell scripts or slurm batch files that make use of these software packages, remember that you must still load modules from inside of your script. ​ For example, your script must contain the line ''​%%module load python3%%''​ before you can use python from inside of your script.
  
-Before ​modules ​will work from inside SLURM or scripts, you must including the following line in your script **before** loading any modules:+=== Initialize Modules System === 
 + 
 +To make modules work from inside SLURM or scripts, you must including the following line in your script **before** loading any modules:
  
 <code bash> <code bash>
 source /​etc/​profile.d/​modules.sh source /​etc/​profile.d/​modules.sh
 </​code>​ </​code>​
  • linux_environment_modules.txt
  • Last modified: 2019/10/09 15:15
  • by ktm5j