I try to write a shell script to automatically submit yambo calculations and run them on my cluster.Some sentences are like this:
Code: Select all
yambo -i
Code: Select all
yambo
Code: Select all
yambo -r -x -p p -g n
However,when I run the auto.sh ,I will enter the vi compilation environment(after yambo -i or then after yambo -r -x -p p -g n),So what can I do to save and exit vi so that I can continue with the next command:yambo -r -x -p p -g n?
That puzzle me ,please give me some help
Best wishes
Quxiao