How to use simple commands to exit vi compiler after using yambo - i in shell script
Posted: Thu Mar 09, 2023 4:07 am
Dear amolina:
I try to write a shell script to automatically submit yambo calculations and run them on my cluster.Some sentences are like this:
which is writen in the auto.sh.
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
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