Server IP : 162.241.126.129 / Your IP : 18.226.169.169 Web Server : Apache System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64 User : rvway5nu4 ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/Modules/modulefiles/ |
Upload File : |
#%Module1.0##################################################################### ## ## use.own modulefile ## proc ModulesHelp { } { puts stderr "\tThis module file will add \$HOME/privatemodules to the" puts stderr "\tlist of directories that the module command will search" puts stderr "\tfor modules. Place your own module files here." puts stderr "\tThis module, when loaded, will create this directory" puts stderr "\tif necessary." } module-whatis "adds your own modulefiles directory to MODULEPATH" eval set [ array get env HOME ] set ownmoddir $HOME/privatemodules # create directory if necessary if [ module-info mode load ] { if { ! [ file exists $ownmoddir ] } { file mkdir $ownmoddir set null [open $ownmoddir/null w] puts $null "#%Module########################################################################" puts $null "##" puts $null "## null modulefile" puts $null "##" puts $null "proc ModulesHelp { } {" puts $null " puts stderr \"\tThis module does absolutely nothing.\"" puts $null " puts stderr \"\tIt's meant simply as a place holder in your\"" puts $null " puts stderr \"\tdot file initialization.\"" puts $null "}" puts $null "" puts $null "module-whatis \"does absolutely nothing\"" } } module use --append $ownmoddir