Create answers.sh

Execute questions and auto answer
This commit is contained in:
Ankam Ravi Kumar
2021-08-05 21:49:42 +05:30
committed by GitHub
parent b8659a9cf4
commit b8003a2cd1

15
answers.sh Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/expect
set timeout -1
spawn ./questions.sh
expect "Hi\r"
send -- "Hi\r"
expect "How are you?\r"
send -- "I am fine\r"
expect "Whats your Name?\r"
send -- "My name is Ravi\r"
expect eof