0
This is the code (bash script):
echo "Pass for router:"
read -s pass
/usr/bin/expect <<EOD
spawn ssh 192.168.10.1 -l root 'opkg list-installed' > list-installed.txt
#echo @pass
expect "*password:*"
send "$pass\r"
interact
EOD
Problem is that it's returning nothing. It doesn't create the local file "list-installed.txt"
What could be wrong with this?
1+1
expect eof
was the key for my situation. – FractalSpace – 2014-11-21T19:54:51.227