HPC @ Uni.lu

High Performance Computing in Luxembourg

FAQ: How Can I Use Modules in Non-interactive Jobs?

You’re receiving an module: command not found error when launching passive/reservation jobs on the platform.

In your scripts, you need to use as the very first line (defining the script interpreter):

#!/bin/bash -l

or insert in the script, once, above any module command:

. /etc/profile.d/modules.sh

Either one of the above is required and what is correct depends on which kind of shell you use and how you want to handle it.