module conflict statement
Manage your shell environment variables and aliases
Brought to you by:
leomania,
xdelaruelle
From: Roberto B. <Rob...@ge...> - 2000-03-18 20:54:17
|
Hi, i have a hopefully simple question regarding modules due to the fact i do not know tcl... In module there is an option called conflict to be used to catch conflicts between already loaded modulefiles. I have to set up modulefiles for two different versions of software so i have something like: Software/verA (default) and Software/verB now in hte modulefiles i put the command conflict Software and if i load a version once anotherone is already loaded modules dumps an Error stating this fact (plus some other info) and exits. My question is the following: How do i catch the error message and instead of exiting dump something nice to stderr or even better automatically unload the other version and load the correct one telling the user i have done so? Tcl provides catch but i was not able to use it... :( In general how do i manage the errors eventualy produced by module? The only way i found is to turn off error writing but then one does not even know that there has been an error... There must be something simple in order to deal with this "problem". Thanks in advance for the answers Roberto -- E-Mail: Rob...@ge... Mail-Address: INFN - Sez. di Genova Phone: +39 10 353-6301 Via Dodecaneso, 33 Fax: +39 10 353-6319 I-16146 GENOVA |