re-read modified /usr/share/Modules/init/.modulespath
Hi all,
I want to add my own directory for modulefiles, such as /usr/local/share/Modules/modulefiles, and I am doing this by adding this directory in the text file /usr/share/Modules/init/.modulespath. My problem is that when I do "module avail", it does not show the modulefiles of the new directory unless I reboot the system. What command can I run so that /usr/share/Modules/init/.modulespath is re-read without needing to reboot? Many thanks, Spiros |
If you want to have some modules read and loaded by the init at boot up the place where init looks into it is /etc/modprobe.d directory. Put everything you like there; at successful boot and load the modules are already reckoned by the system.
Hope that helps. Good luck. |
Thanks for the reply. I can get things to work with a reboot, but my problem is I cannot figure out how to reload the .modulespath without reboot. Do you have any ideas on how to do this without reboot? I want to do this on a server so restarting the system is not an option unfortunatelly.
Thanks, Spiros |
Use modprobe to insert or remove modules without need to reboot.
Code:
~$ modprobe -h Hope that helps. Good luck. m.m. |
Thanks for your help!
Sorry but I was probably not clear enough. The modules I am refering to are for loading environment variables using the Code:
module Code:
module avail Code:
------------------------ /usr/share/Modules/modulefiles ------------------------ I want to add my own additional directory where "module" searches, for example /home/spiros/Modules/modulefiles, so that when typing "module avail" it will list something lie this: Code:
------------------------ /usr/share/Modules/modulefiles ------------------------ Many thanks for your time, Spiros |
Ah, I see, am sorry. It means you are using 'module' package.
Have you tried these already? -- Code:
module load Code:
module help Hope that helps. Good luck. |
All times are GMT -5. The time now is 12:32 AM. |