Posted by dandriff on Monday January 21, 2008@11:28AM
Expect has saved me many a headache. Coupled with Autoexpect it allows allows for the automatic creation of an expect script to do what you want. The entire process is very simple.
fizz:~>autoexpect autoexpect started, file is script.exp fizz:~> (DO STUFF YOU WANT TO AUTOMATE..) fizz:~>exit autoexpect done, file is script.exp
My only gripe is that the debian and 'buntu (have you ever tried to say ubuntu? keke..) do not include the autoexpect utility with the expect package! Why!?!? At any rate, I have made the autoexpect script available. To use it, simply do:
sudo -s wget https://wi-fizzle.com/downloads/autoexpect chmod a+x autoexpect mv autoexpect /usr/bin/autoexpect exit