帮助“你好世界” PBSDSH
我想测试 pbsdsh
在我的系统中是否有效。我使用以下程序
我使用的是带有两个 64 位四核 Intel Xeon(24 个计算节点)的 Linux 服务器,
try.sh
#!/bin/bash
# Set up the path
PATH=/usr/local/bin:$PATH
export PATH
# Make all hosts print out "Hello World"
pbsdsh echo Hello World
然后我发出命令
qsub -l nodes=2 try.sh
我在 try.sh.e2013
中收到以下错误消息
/var/spool/torque/mom_priv/jobs/2013.hpc.SC: line 8: pbsdsh: command not found
, 错误消息具有误导性,因为系统中确实存在 pbsdsh
,
有人可以帮我解决这个问题吗
?
I want to test whether pbsdsh
works or not in my system. I use the following programme
I am using a linux server with two 64-bit quad-core Intel Xeon (24 compute nodes
try.sh
#!/bin/bash
# Set up the path
PATH=/usr/local/bin:$PATH
export PATH
# Make all hosts print out "Hello World"
pbsdsh echo Hello World
then I issue the command
qsub -l nodes=2 try.sh
I got the following error message in try.sh.e2013
/var/spool/torque/mom_priv/jobs/2013.hpc.SC: line 8: pbsdsh: command not found
This error message is misleading as pbsdsh
does exist in the system.
Could anyone help me out with this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是否存在于
PATH
中?特别是,它是否存在于运行它的计算节点上的PATH
中?保留在请注意,此脚本环境中的$PATH
变量可能与头节点上的交互式 shell 中的不同,您可以通过在您的脚本中回显$PATH
来找到这一点;尝试提交一个交互式作业,然后,当您在其中一个节点上有交互式 shell 时,找到 pbsdsh 并确保它位于您认为的位置。
Does it exist in
PATH
? And, in particular, does it exist inPATH
on the compute nodes on which it's being run? Keep in mind that the$PATH
variable in the environment of this script may be different than in an interactive shell on the head node; you can find this out by echoing$PATH
in your script. Try submitting an interactive joband then, when you have an interactive shell on one of the nodes, find pbsdsh and make sure it's where you think it is.