Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > 0300a44d46b1dcd30fdf6e83931f63bd > files > 19

gabedit-2.0.10-2mdv2008.1.x86_64.rpm

#!/bin/ksh
if test -z "$1"
then
   echo "+--------------------------------------------------------------+"
   echo "!                                                              !"
   echo "! submitGaussian command :                                     !"
   echo "!                                                              !"
   echo "! This command is used to submit Gaussian job with LSF         !"
   echo "!                                                              !"
   echo "! Syntax: submitGaussian QUEUE dataFile.com                    !"
   echo "!                                                              !"
   echo "! type          - type of queues(G,GL)                         !"
   echo "!                 G    : under 172800 seconds(default)         !"
   echo "!                 GL  : under 604800 seconds                   !"
   echo "! dataFile.com  - name of the input gaussian file              !"
   echo "!                                                              !"
   echo "+--------------------------------------------------------------+"
   exit
fi
type=$1
jobcom=$2
echo $jobcom
if [ ! -f "$jobcom" ]
then
   echo I can not open $jobcom file
   exit
fi
if test -z "$type"
then
   type=G
fi
job=${jobcom%.com}
bsub -q $type -J $job  -o $job.out -e $job.err "/home/allouche/shell/gauss $job"  
exit