That looks like exactly what I want.
To give you more information, the script that makes/sends the emails is in perl (which I don't know very well, and wasn't written by me), and the script calling the perl is in bash.
So if I use expect in the bash script after calling the perl script I should be able to get it to give the perl script the ok to continue?
I do have one last question.
If I am replacing my shell script with an expect script that I want to run the perl and then give the perl input it'd look something like this right?
spawn perl NAMEOFPERLSCRIPT.pl
expect "Run This Script?"
Sorry for all the questions, expect is a new tool to me.
Last edited by stodds; 11-22-2010 at 11:44 AM.