I have been using cmod since it was first announced to this list three years
ago (see below). I have been very happy with the ease-of-use, but recently
found the need to support multiple platforms. I was interested to read about
Lloyd Cha's straightforward single module strategy (see below).
Unfortunately the "switch" command is not supported in cmod. Other commands
I have read about in the modulefile man page such as:
module-whatis "comment"
set-alias ALIAS_NAME "alias-value"
proc ModulesHelp { } { puts stderr "comment" }
are also not supported by cmod.
1) Do there exist commands with similar functionality supported by cmod?
2) Is there other online documentation besides:
http://www.modules.com/man/man1/module.1.html
http://www.modules.com/man/man4/modulefile.4.html
Thanks,
Bill Rubin
> Date: 22 Oct 1998 14:08:22 +0200
> From: ce...@ly... (Per Cederqvist)
> Subject: Re: modules problems, binary request
> :
> Indeed it is. In the spirit of "less is more" I decided to do
> something radical about the situation. Please allow me to announce
> cmod version 1.1, available via http://www.lysator.liu.se/cmod/ and
> ftp://ftp.lysator.liu.se/pub/unix/cmod/cmod-1.1.tar.gz ...
> Date: Fri, 10 Aug 2001 14:27:23 -0700
> From: "Lloyd C. Cha" <lc...@po...>
> Subject: Re: Exit from Module load without actually loading
> :
> What I have been doing is to use a single modulefile directory shared
> among all the platforms that we support. The modules have specific
> instructions based on the OS detected. These are selected via a
> switch statement such as the following:
>
>
#--------------------------------------------------------------------------
> set os [join [list [uname sysname] [uname release]]]
> switch -glob $os {
> "SunOS 5.*" {
> # SunOS 5.x specific stuff
> }
> "SunOS 4.*" {
> # SunOS 4.x specific stuff
> }
> "HP-UX B.10*" -
> "Linux*" -
> "AIX*" -
> "HP-UX*" {
> append-path PATH $env(EXAMPLE)/bin
> append-path LM_LICENSE_FILE 1700@lic-serv
>
> # Common stuff
> common_proc
> }
> }
|