PageRenderTime 89ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/GabeditSrc240/utils/Gaussian/LSF/submitGaussian

#
Korn Shell | 34 lines | 33 code | 0 blank | 1 comment | 3 complexity | 0087d9bfa1fcb52ed7e29068b7a56405 MD5 | raw file
  1. #!/bin/ksh
  2. if test -z "$1"
  3. then
  4. echo "+--------------------------------------------------------------+"
  5. echo "! !"
  6. echo "! submitGaussian command : !"
  7. echo "! !"
  8. echo "! This command is used to submit Gaussian job with LSF !"
  9. echo "! !"
  10. echo "! Syntax: submitGaussian QUEUE dataFile.com !"
  11. echo "! !"
  12. echo "! type - type of queues(G,GL) !"
  13. echo "! G : under 172800 seconds(default) !"
  14. echo "! GL : under 604800 seconds !"
  15. echo "! dataFile.com - name of the input gaussian file !"
  16. echo "! !"
  17. echo "+--------------------------------------------------------------+"
  18. exit
  19. fi
  20. type=$1
  21. jobcom=$2
  22. echo $jobcom
  23. if [ ! -f "$jobcom" ]
  24. then
  25. echo I can not open $jobcom file
  26. exit
  27. fi
  28. if test -z "$type"
  29. then
  30. type=G
  31. fi
  32. job=${jobcom%.com}
  33. bsub -q $type -J $job -o $job.out -e $job.err "/home/allouche/shell/gauss $job"
  34. exit