I\'m writing a Linux Shell Script to automate a few things I\'m doing on Ubuntu 11.04.
Basically, I\'m writing a shell script to install NGINX, MySQL, and PHP, and then
Try Expect it might be what you are looking for.