Dear Axel,
I also encounter the same problem of a stop codon inside several genes. I try to use your expect script to bypass the "Press Enter" problem. I use codeml to test for many genes in the same files.
What I type in the command line is as below.
> expect expect_codeml.bsh codeml_control_file.ctl
It works for the first gene with a middle stop codon, but it does not work when the codeml runs into the 2nd gene with a middle stop codon and others afterward.
Is there a particular way to use this script for multiple genes with stop codeml?
Thanks