Eu modifiquei meu script da seguinte forma: O script a seguir pode ser modificado para funcionar com outros pacotes de cálculo (aqui é usar dalton).
Usando
./<script name> <file1> <file2>
(Arquivo1 e Arquivo2 são específicos do programa que estou usando.)
#!/bin/bash
# Running QM-JOB: helix HPC
d="$1" # .dal file
m="$2" # .mol file
dt=$(date '+%Y-%m-%d %H:%M:%S' )
echo -e 'Job started @ '$dt'' >> ~/dalton/runlog.log
cd /home/vayu/ChemPackage/dalton_mod/dalton # custom coded (ln 56,548,954)modified installation
echo "-----------Scratch Disk Info-------------------"
df -h /dev/md0
echo "-----------------------------------------------"
export DALTON_TMPDIR=/mnt/raid0/scratch
export OMP_NUM_THREADS=6
source /opt/intel/compilers_and_libraries_2017.0.098/linux/bin/compilervars.sh intel64
source /opt/intel/mkl/bin/mklvars.sh intel64
echo "//---------------process started-------------------//"
dt1=$(date '+%Y-%m-%dT%H:%M:%S');
#following line calls the program and runs the job.
./dalton -b ~/dalton/ExtBasis -w ~/dalton/calc/molecule -omp 6 -mb 15999 $d $m
dt2=$(date '+%Y-%m-%dT%H:%M:%S');
dateutils.ddiff "$dt1" "$dt2" #time duration of job
echo "//-----------------process FINISHED ----------------//"
output=$( "$d"_"$m"".out") ; echo $output
tail -10 "$output" #last 10 lines of output file which tell me about the job's completion status(successful or failed !).
echo "//--------------------------------------------------//"