Questions tagged [modulefile]

Unix modulefiles provide a standard way to set environment variables in a shell.

Unix modulefiles provide a standard way to set environment variables in a shell.

Wikipedia

See the manpage at your unix command prompt:

man module
27 questions
1
vote
1 answer

Modulefile - Module loading when module unload is called

So I am trying to have module files dynamically load/unload when you load one. I am trying to do this in a way so that I can unload conflicting modules (instead of just using the conflict variable as it just throws an error) However, when I call…
Matthew
  • 138
  • 2
  • 9
1
vote
1 answer

Trying to get value of PATH variable from module file while reading the module file in lua

I am trying to read value of PATH variable given in a module file while reading the module file in a lua script. I am not sure whether this can be done using some function in lua, as I am pretty new to lua. Module file (netcdf) only a part of the…
1
vote
1 answer

Make proc available to all modulefiles?

I'm using modules to manage software. I'm trying to set up the environment so that a certain function can be called from any modulefile without each file having to source the proc definition. Example: I want the util:prereq function to be available…
Levi Morrison
  • 19,116
  • 7
  • 65
  • 85
0
votes
1 answer

Prevent exec command running on module unload ibm load sharing facilty

I have a tcl script which is a modulefile within the IBM Load Sharing Facitily (lsf) used to configure some environment variables and launch a python script by using the exec command. When the module is unloaded normally the opposite of all the…
Aesir
  • 2,033
  • 1
  • 28
  • 39
0
votes
2 answers

Including source shell script in lua modulefile

I am trying to create a module file for an application I have installed on the cluster. To run the program, I have to run a script named "phenix_env.sh" which contains the following: #!/bin/sh # export PHENIX="/src/phenix-1.19.2-4158" export…
Tanash
  • 461
  • 1
  • 5
  • 8
0
votes
1 answer

How to automatically generate the modulefile for Intel compilers

Do you know a way to automatically generate the modulefile for Intel compilers without using the env2 script?
fdb
  • 1,998
  • 1
  • 19
  • 20
0
votes
1 answer

How to set the USIF specific variable "GLIBC" in modulefile?

I am working in a slurm-based HPC cluster, and I have done so for the past 5 years. We load and unload the modules we need for our analyses, among which the compilers such as gcc. This has worked seamlessly for me until two days ago. For the last…
schmat_90
  • 572
  • 3
  • 22
0
votes
3 answers

How to store output of module avail command in perl?

#!/depot/local/bin/perl5.8.0 my @data = `module avail icwbev_plus `; print "Data Array : @data \n " ; my $data1 = `module avail icwbev_plus `; print "Data $data1 \n" ; my $data2 = system (" module avail icwbev_plus "); print "S Data $data2 "…
0
votes
2 answers

How do retrieve output from a bashscript that you run from a tcl script <- (modulefile script)

In my home dir, I have sub directories (CentOS, Ubuntu, etc) all for specific nodes I have access to. Each OS will hold their own copy of programs, one of which is Python: $HOME/{CentOS, Ubuntu, ...}/{python2,python3} I am using environment…
0
votes
1 answer

Pass ARRAY arguments to set-alias in modulefile

all. I need to use a function that must be declared within an environment module, so I'm trying to define it with set-alias. Here's the tricky thing, the parameter it takes is an array. So far, as a test I've tried this: set-alias test { …
0
votes
1 answer

Env not modify when loading module in modulefile

I would like to load a module into a modulefile (to resolve dependencies). MyModule: #%Module######################################## ## ## Modulefile # proc ModulesHelp { } { puts stderr "Env for MyProg" } proc addPath {var val} { …
Sigmun
  • 1,002
  • 2
  • 12
  • 23
0
votes
2 answers

Set limit on coredumpsize using modules

I am trying to convert a csh script to a tcl script for use within the linux modules functionality. The csh script was originally used to set environment variables properly for a software package. Instead of asking an end-user to change his shell…
twinoza
  • 3
  • 1
  • 4
1
2