What is wrong with my expect script?
- by Bryan
I'm trying to learn how to use the expect command, to help me automate deployment of some software via shell scripts, and figured I start with something simple to get me started.
I've created a file in my home dir called 'foo' using:
touch foo
And I've created the following script saved as test.exp
#!/usr/bin/expect
spawn rm -i foo
expect "rm:…