Sorry, that is for TCL modules, not sure which format you are using (https://lmod.readthedocs.io/en/latest/098_dependent_modules.html?highlight=%22module-info%22#always-load-a has both)
On Wed, 27 Feb 2019 at 11:22, Alan O'Cais <[email protected]<mailto:[email protected]>> wrote: Example of thiis approach at (for load rather than unload): https://lmod.readthedocs.io/en/latest/190_Integration_of_EasyBuild_and_Lmod.html?highlight=mode#example-use-own-eb-append On Wed, 27 Feb 2019 at 11:17, Åke Sandgren <[email protected]<mailto:[email protected]>> wrote: use if (mode() == "unload") ? On 2/27/19 11:09 AM, Joachim Hein wrote: > Hi, > > This is more an Lmod than an Easybuild question, I hope it still ok to ask > here. We have a package that needs an executable to be run when the module > is loaded, which we succeeded in. However when there is a clean-up > executable that needs running when the module is unloaded or purged. Any > pointers on how that can be achieved? > > Thanks > Joachim > -- Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden Internet: [email protected]<mailto:[email protected]> Phone: +46 90 7866134 Fax: +46 90-580 14 Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se -- Dr. Alan O'Cais E-CAM Software Manager Juelich Supercomputing Centre Forschungszentrum Juelich GmbH 52425 Juelich, Germany Phone: +49 2461 61 5213 Fax: +49 2461 61 6656 E-mail: [email protected]<mailto:[email protected]> WWW: http://www.fz-juelich.de/ias/jsc/EN -- Dr. Alan O'Cais E-CAM Software Manager Juelich Supercomputing Centre Forschungszentrum Juelich GmbH 52425 Juelich, Germany Phone: +49 2461 61 5213 Fax: +49 2461 61 6656 E-mail: [email protected]<mailto:[email protected]> WWW: http://www.fz-juelich.de/ias/jsc/EN ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------

