autoexpect script.exp
0
I use autoexpect generated a script.exp. see following. how to understand expect -exact " r Type ha for help on aliasesr r ]0;luoric@linux-pc-64:/home/luoric/tmp[01;34mluoric@linux-pc-64[01;34m tmp $[00m " ? and after I run script.exp. I got "ls" and "ls -l" result correctly. and get command line prompt. but when I hit enter. there is no command line prompt. I have to use ctrl C, to exit so I can continue enter command from terminal. What I'm missing? #!/usr/bin/expect -f # # This Expect script was generated by autoexpect on Tue Dec 18 09:42:08 2018 # Expect and autoexpect were both written by Don Libes, NIST. # # Note that autoexpect does not guarantee a working script. It # necessarily has to guess about certain things. Two reasons a script # might fail are: ...