10. Debugging - more (2)

Although autoexpect still can not create a Perl code, it can be very helpful while creating Perl/Expect script. Autoexpect is watching interact session and reproduce it in expect "way".

NoteNOTE
 

autoexpect is very useful to create new scripts. But scripts created by it usually are not useful.

The follow command:

autoexpect -f script.exp ssh root@127.0.0.1

produce this script.

Figure 1. The interesting part is -exact " img ".