Skip to content

Commit b8003a2

Browse files
authored
Create answers.sh
Execute questions and auto answer
1 parent b8659a9 commit b8003a2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

answers.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/expect
2+
3+
set timeout -1
4+
5+
spawn ./questions.sh
6+
expect "Hi\r"
7+
send -- "Hi\r"
8+
9+
expect "How are you?\r"
10+
send -- "I am fine\r"
11+
12+
expect "Whats your Name?\r"
13+
send -- "My name is Ravi\r"
14+
15+
expect eof

0 commit comments

Comments
 (0)