Current Path: > > usr > share > > Modules > init
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
ksh-functions | Directory | - | - | |
zsh-functions | Directory | - | - | |
bash | File | 4134 bytes | October 14 2023 18:46:13. | |
bash_completion | File | 11464 bytes | October 14 2023 18:46:13. | |
cmake | File | 1925 bytes | October 14 2023 18:46:13. | |
csh | File | 3874 bytes | October 14 2023 18:46:13. | |
fish | File | 1733 bytes | October 14 2023 18:46:13. | |
fish_completion | File | 9647 bytes | October 14 2023 18:46:13. | |
ksh | File | 4162 bytes | October 14 2023 18:46:13. | |
lisp | File | 3230 bytes | October 14 2023 18:46:13. | |
perl.pm | File | 1118 bytes | October 14 2023 18:46:13. | |
profile-compat.csh | File | 197 bytes | October 14 2023 18:46:13. | |
profile-compat.sh | File | 309 bytes | October 14 2023 18:46:13. | |
profile.csh | File | 105 bytes | October 14 2023 18:46:13. | |
profile.sh | File | 448 bytes | October 14 2023 18:46:13. | |
python.py | File | 1539 bytes | October 14 2023 18:46:13. | |
r.R | File | 961 bytes | October 14 2023 18:46:13. | |
ruby.rb | File | 1379 bytes | October 14 2023 18:46:13. | |
sh | File | 4004 bytes | October 14 2023 18:46:13. | |
tcl | File | 1071 bytes | October 14 2023 18:46:13. | |
tcsh | File | 3880 bytes | October 14 2023 18:46:13. | |
tcsh_completion | File | 5521 bytes | October 14 2023 18:46:13. | |
zsh | File | 4151 bytes | October 14 2023 18:46:13. |
;; ;; emacs-lisp init code for Modules ;; (setenv "MODULESHOME" "/usr/share/Modules") (defvar Modules-history '() "module cmd history list") (defun Modules-module (command) "Run the string COMMAND as a Modules cmd using the tcl version of modules. Any resulting output is placed in buffer \" *modules-cmd*\". This should consist of a single line, a filename, which is expected to contain Emacs lisp code to implement the indicated module commands. The lisp code in this file is eval'd by Emacs on successful completion of modulecmd.tcl. Standard error output is placed in buffer \" *module-log*\" which will be displayed if not empty. Return value is t on success, nil otherwise." (interactive (list (read-string "Module cmd: " nil 'Modules-history))) (let ((cmd-buffer (get-buffer-create " *modules-cmd*")) (log-buffer (get-buffer-create " *modules-log*")) (log-scratch-file (make-temp-name (expand-file-name "modules-log" (if (fboundp 'temp-directory) (temp-directory) ;; XEmacs temporary-file-directory)))) (status nil)) ;; clear cmd buffer, log buffer is replaced below (set-buffer cmd-buffer) (delete-region (point-min) (point-max)) (if (condition-case nil ;; call-process on Emacs cannot write stderr to a separate buffer ;; so it must go to a file and then get pulled into the log buffer ;; (XEmacs *can* direct stderr to buffer, but not worth special case) (progn (apply 'call-process "/usr/bin/tclsh" nil (list cmd-buffer log-scratch-file) nil ;; don't display stdout "/usr/share/Modules/libexec/modulecmd.tcl" "lisp" (split-string command)) t) (error nil)) (progn ;; pull any log info from log-scratch-file into log-buffer (set-buffer log-buffer) (insert-file-contents log-scratch-file nil nil nil t) ;; display any output written to stderr ( eg: module help|list ) (if (> (buffer-size) 0) (switch-to-buffer-other-window log-buffer)) ;; Run any setenv, etc commands produced by modulecmd.tcl ;; cmd-buffer should currently contain the pathname of file to run ;; Note: use eval-buffer instead of load-file to avoid stomping ;; any (message) output from the script itself. (set-buffer cmd-buffer) (if (> (buffer-size) 0) (progn ;; run it carefully. If an error is thrown, catch it and ;; propagate the fact upwards as a nil, but be sure to still ;; execute cleanup below (setq status (condition-case nil (progn (eval-buffer) t) (error nil))))))) ;; all done, clean up (delete-file log-scratch-file) status))
SILENT KILLER Tool