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 -fspawn apt-get install expectOR#!/usr/bin/expect -fspawn ssh 10.10.80.1it just prints out the same text when I execute it using ./test.sh , here is the resultspawn apt-get install expectANDspawn ssh 10.10.80.1What am I doing wrong?
spawn command issue in Expect Script
linux;kali linux;expect