开发者

Help with "hello world" pbsdsh

开发者 https://www.devze.com 2023-02-03 15:57 出处:网络
I want to test whether pbsdsh works or not in my system开发者_如何学C. I use the following programme

I want to test whether pbsdsh works or not in my system开发者_如何学C. 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


"This error message is misleading as pbsdsh does exist in the system."

Does it exist in PATH? And, in particular, does it exist in PATH 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 job

$ qsub -I -l nodes=2 

and then, when you have an interactive shell on one of the nodes, find pbsdsh and make sure it's where you think it is.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号