批量提交Bsub命令
来源:互联网 发布:数据恢复精灵离线激活 编辑:程序博客网 时间:2024/06/05 05:19
1. 创建脚本如 a.sh,内容:
4. 得到一系列结果文件,根据结果中的某行“final size: ”进行排序,使用shell文件 b.sh,内容如下:
#!/bin/bashfor ((i=1; i<=58; i++))do bsub -q serial -e temp$i.err -o temp$i.log "./regex -p temp$i --m --i"done2. 修改权限
chmod u+x a.sh3. 执行 ./a.sh
4. 得到一系列结果文件,根据结果中的某行“final size: ”进行排序,使用shell文件 b.sh,内容如下:
#!/bin/bashfor ((i=1; i<=58; i++))doecho -n $i " " ; grep "final size" temp$i.err done
执行./b.sh: ./b.sh> entries
5. 接下来根据entries中的第四列进行排序:
sort -n -k 4 entries | awk "{printf $1, $4}" > sorted_entries
6. 根据排序后的文件跑程序,建立 c.sh ,内容如下:
list=(9 14 39 44 45 16 28 3 7 21 42 38 22 54 4 32 33 23 37 10 30 5 41 35 36 40 43 19 11 31 34 51 53 18 55 58 8 15 20 56 29 6 48 47 57 46 49 52 13 1 26 25 27 2 12 24 50 17)for ((i=2; i<=58; i++))doprintf "bsub -q serial -e ttrend_$i.err -o ttrend_$i.log \"./regex -pm $i "for ((j=0; j<$i; j++))doprintf "temp%d " "${list[$j]}" doneprintf " --m --i\";"echodonelist是排好序的文件名。
7. 执行c.sh:./c.sh > tempbatch.sh
8. 给tempbatch.sh加上shell头 #!/bin/bash
执行tempbatch.sh,从而最终提交批处理任务。
- 批量提交Bsub命令
- bsub命令
- 深腾7000上用bsub命令提交MPI作业
- spark 批量提交依赖包命令
- oracle批量提交
- Struts2批量提交
- Oracle 批量提交代码
- oracle批量提交
- oracle 批量提交
- idea SVN批量提交
- 批量修改数据提交
- FireDAC 下的 Sqlite [11] - 关于批量提交 SQL 命令的测试
- git批量删除文件和批量提交
- 可编辑表格批量提交
- mysql 批量数据提交jdbc
- Struts2 批量数据提交解决方案
- python 批量提交沙箱
- 批量删除和ajax提交
- 【线段树求LCIS】HDU 3308
- U盘杀毒软件U盘Clear
- jQuery-对Select的操作集合
- Ajax 改造,第 2 部分: 使用 jQuery、Ajax、工具提示和 lightbox 改进现有站点
- linux 搭建ftp 针对不给开20号端口的搭建方法
- 批量提交Bsub命令
- Ajax 改造,第 3 部分: 用 jQuery、Ajax 选项卡和照片 carousel 改进现有的站点
- 今天碰到个错误,ile was built for unsupported file format which is not the architecture being linked (armv7)
- Ajax 改造,第 4 部分: 用 jQuery 和 Ajax 表单改造现有站点
- HyperTerminal Alternatives for Windows 7 ---by Aseem
- Jquery Select操作方法集合
- iphone开发基础三和c语言混编
- [转贴]俞天任:日本家电行业还能起死回生吗
- 使用CxImage库的初体验