批量提交作业的shell脚本
- 批量提交作业的shell脚本 推荐度:
- 相关推荐
批量提交作业的shell脚本
目的:将多个作业提交到不同的计算节点上。
#首先确定好哪些节点可用,然后更改下面的代码
#Define the number-1 of the first visit folder(framenum)
framenum=24
for nodeid in `seq 1 5` 8 10 11 `seq 14 18` `seq 23 29` `seq 31 34` 12 19 42 43
#for nodeid in 41 13 9 7 12
do
#let num+=1
framenum=`expr $framenum + 1`
if [ -d /home3/maoruichao/dynamics/1nkz/revision/temp_diff/sec_330k/image_1000ns/spectrum_last100ns_100frames/3_g16_coup/330k_$framenum/bcl_addh_gjf ]
then
#Define the number of the last visit folder
if [ $framenum -le 100 ]
then
process=`unode | grep "n$nodeid " | awk '{printf $2 "\n"}'`
echo "The process number of node $nodeid is $process"
if [ $process == 0 ]
then
ssh n$nodeid "cd /home3/maoruichao/dynamics/1nkz/revision/temp_diff/sec_330k/image_1000ns/spectrum_last100ns_100frames/3_g16_coup/330k_$framenum/bcl_addh_gjf;nohup sh rung16.sh > rung16.out 2>&1 &"
echo "Job $framenum has running on node $nodeid..."
else
echo "node$nodeid is not empty! continue to next one"
framenum=`expr $framenum - 1`
continue
fi
else
echo "$framenum is equal to 101! break now"
break
fi
else
echo ""/home3/maoruichao/dynamics/1nkz/revision/temp_diff/sec_330k/image_1000ns/spectrum_last100ns_100frames/3_g16_coup/330k_$framenum/bcl_addh_gjf" is not exsist! break now"
break
fi
done
- 有关欧拉函数
- DCMM是什么
- labview 读取xml
- Application.platform 平台
- .NET 反编译工具
- IIS服务器安全配置[摘]
- TextOut 字符串输出
- 关于vss的使用
- ADFS 概念与基本开发介绍 (1)
- 欧几里得距离和曼哈顿距离
- 信息论与编码
- 二叉树的五种遍历方式
- c语言上机试题库及答案,《C语言上机试题及答案》.doc
- Hashtable、HashMap 与 HashTable区别、HashMap、Hashtable和TreeMap、 LinkedHashMap
- SVM支持向量机算法
- 在android项目上集成libyuv库以及使用libyuv库完成camera的缩放,旋转,翻转,裁剪操作
- 自适应直方图均衡(CLAHE) 代码及详细注释【OpenCV】