Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

211
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda