|
你的命令是怎样执行的呢?
若是使用batch(或队列)系统提交的,那使用batch系统的查询命令就可以的。
若只是单纯的后台执行,那可以用ps命令查询。
这里我假设你是用ssh进入计算node的。
nodelist="node1,......" #计算nodo列表
ycomand="****“ #命令名
for node in $nodelist
do
ssh $node ps ux|grep $ycommand&& echo "the $ycommand is executing on$node"
done
|