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] Phone: +46 90 7866134 Fax: +46 90-580 14 Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se

