I am using KALI Linux and have some trouble with an expect script.
I don't know why the spawn command doesn't perform any action, it just echos out the same text
#!/usr/bin/expect -f
spawn apt-get install expect
OR
#!/usr/bin/expect -f
spawn ssh 10.10.80.1
it just prints out the same text when I execute it using ./test.sh
, here is the result
spawn apt-get install expect
AND
spawn ssh 10.10.80.1
What am I doing wrong?