Basically I'm running Gaussian09 freqchk utility, I need to write a bash script to interact with the terminal, and I have one variable here(temperature), $i
, when I execute the script in terminal, my user argument doesn't seem to be recognizable for somehow reason, and the terminal is just pending for my user argument.
#!/bin/bash
for i in {77..900}
do
freqchk methane.chk > $i
#Write Hyperchem file?
echo "N"
#Temperature (K)?
echo "$i"
#Pressure (Atm)
echo "0"
#Scale factor for frequencies during thermochemistry?
echo "1.0"
#Do you want to use the principal isotope masses?
echo "Y"
#Project out gradient direction?
echo "Y"
done
I have checked with ShellCheck, it doesn't produce any error feedback. I took an answer from Have bash script answer interactive prompts
that's why I use echo
, but it doesn't seem to work at all. Much appreciated if anyone can spare some hint?