Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

208
Vistas
How to get an Environment Module modulefile to print a message upon loading the module?

I've just learned the basics on how to make modulefiles for loading software on my cluster. Other environment modules (created by admins) print a message upon loading: $ module load Name Welcome to Name/version.1.2.3 How do I add this to the modulefile? I like the quick confirmation that I've indeed loaded the module I intended. I've tried a few things from the man page (ex module-info name) but no luck (or I'm doing it wrong).

Thanks

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

You can add puts stderr statements to modulefile, for printing messages to terminal.

puts stderr "** INFO: 'Welcome, Module loaded'"
over 4 years ago · Santiago Trujillo Denunciar

0

If you "only" want the message to print when running module load (but not when running module unload or other commands), then you can use a statement like this:

if [ module-info mode load ] {
    puts stderr "your text here"
}

Reference: https://sourceforge.net/p/modules/mailman/message/34597600/

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda