Daily Bulletin

Initializing modules in C shell scripts on Derecho

December 15, 2023

You may have noticed that the “module” command is not always available in your (t)csh shell scripts, including PBS batch jobs. This issue is the result of differences in the way the shell is initialized in SUSE Linux. We have developed a back-end fix for the problem, which is deployed already on Casper. The fix will also be deployed on Derecho during the next scheduled outage.

Until the fix is deployed, if you run into the error “module: Command not found”, add the following line to the beginning of your csh shell script or PBS batch job (after the PBS directives):

source /etc/profile.d/z00_modules.csh

If you have any questions, please reach out to us via a support ticket.