如何发出"模块加载"在一个外壳或Perl脚本(即,非交互) [英] How to issue "module load" in a shell or Perl script (i.e., non-interactively)

查看:129
本文介绍了如何发出"模块加载"在一个外壳或Perl脚本(即,非交互)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以交互地使用模块加载XYZ的命令,但是从脚本运行时,它说,它无法找到模块命令。有没有加载模块的任何方式脚本?

I can use the "module load xyz" command interactively, but when run from a script, it says it can't find the "module" command. Is there any way of loading modules in a script?

推荐答案

启动bash脚本是这样的:

Start your bash script like this:

#!/斌/ bash的-l

请注意在此之后加载模块加载模块XYZ将仅可从脚本文件中。

Note that modules loaded after this with module load xyz will only be available from inside the script file.

这篇关于如何发出"模块加载"在一个外壳或Perl脚本(即,非交互)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆