Hello Baudilio,
I suggest to use a Unix group to distinguish the users that may test
the code, then sourcing this test file in etc/initrc if user is part
of this group:
if {[module-info usergroups group_name]} {
source /path/to/etc/nitric.TEST
}
I take the opportunity of this message to wish everyone a merry christmas.
Best regards,
Xavier
Le mar. 24 déc. 2024 à 01:57, Baudilio Tejerina - NOAA Affiliate via
Modules-interest <mod...@li...> a écrit :
>
> Hello.
>
> I need to add the following logic to the etc/initrc file.
> Before putting the codeI in production, I have created the file etc/nitric.TEST also located in etc/
>
>
> switch -regexp -matchvar name -- $tcl_platform(osVersion) {
> {el8} {
> module use --append {/this/path8}
> }
> {el7} {
> module use --append {/this/path7}
> }
> }
>
>
> Is there a way a user could test it instead of parsing the current etc/initrc?
>
> Thank You!
>
> Baudilio
>
>
>
> Baudilio Tejerina, Ph. D. (Theoretical Physics and Chemistry)
> NOAA Geophysical Fluid Dynamics Laboratory
> Forrestal Campus, Princeton University
> 201 Forrestal Rd., 164
> Princeton, NJ - 08540
> _______________________________
> GPG Key ID: 72668D3DD3D71B44
> ☎: (609) 452 5839
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|