Wednesday, May 16, 2007
In this section I will be showing how to automate interactive sessions with "expect"
Beginning with a very simple example. Suppose you have a very simple script like this.
$ cat test.sh
echo "Whats your name"
echo "Hello $name"
Here is expect script "test.exp" to automate the above script
expect "Whats your name"
$ expect test.exp
Whats your name
Note:: I will be adding a detailed page for expect very soon here.
© Jadu Saikia www.UNIXCL.com