Please help.
I keep getting this error when I execute the following "spawn ssh...." command.
Here is my code:
spawn ssh $ip -l $username -s netconf < /cygdrive/c/pat/somefile.xml
expect {
"assword:" {
send -s "password\r"
expect "]]>]]>"
sleep 1
}
timeout {
puts "timeout"...
Hi,
What I'm trying to do:
Manually from bash shell, if I execute this command:
ssh $ip -l $username -s netconf < 500M_file
This redirects entire content of 500M_file to my ssh channel. The server listening on this channel, will get the content, do some stuff and return some string.
When...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.