步骤如下
 
1. 打开shell
 
2.  vi  makesubmit.sh
 
3. 输入内容
 
         ifort -o outputname  source1.f90  source2.f90  source3.c  source.f  # compile the code, ouputname: define the output file name, source.*, put the name and the type oif the codes.
 
         qsub pbstemplate   # submit the task to the cluster, use the outputname in the pbstemplate file.
 
3. Esc, wq!  #返回及保存文件
 
 
 
运行shell脚本
 
1. chmod u+x makesubmit.sh    # 给予makesubmit.sh x权限,仅用一次,以后都不需要
 
2.   ./makesubmit.sh     #编译及自动提交任务
 
见示例
 
示例:test.tar.gz