loading modules using skript files?

Asked by anton

It should be a silly question but here it is.

I wanted to load modules using script file:

#!/bin/csh
# load intel C compilers
module load mpich-intel
module list

During execution script echoes that the module was loaded. After execution the same command line "module list" shows that no modules are available. Why is that?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Evert van Grootheest (j-e-van-grootheest) said :
#1

Hi,

You probably want to write:
modprobe mpich-intel

At least, when you're talking 'bout kernel modules here.

But why wouldn't you just add the module to /etc/modules and then it gets automatically loaded during boot. No need to write your own script.

Can you help with this problem?

Provide an answer of your own, or ask anton for more information if necessary.

To post a message you must log in.