From b8003a2cd14162cf87a862ce8f7437f6230cd7d3 Mon Sep 17 00:00:00 2001 From: Ankam Ravi Kumar <14858025+techarkit@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:49:42 +0530 Subject: [PATCH] Create answers.sh Execute questions and auto answer --- answers.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 answers.sh diff --git a/answers.sh b/answers.sh new file mode 100644 index 0000000..697f19b --- /dev/null +++ b/answers.sh @@ -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