Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vinhnguyen18

    Please Help! how to Expect from System command

    After digging around some Expect book, I found the solution to this: spawn /bin/sh -c "ssh $ip -l $username -s netconf < somefile.xml"
  2. vinhnguyen18

    spawn ssh error &quot;subsystem request failed on channel 0&quot;

    After digging around some Expect book, I found the solution to this: spawn /bin/sh -c "ssh $ip -l $username -s netconf < somefile.xml
  3. vinhnguyen18

    spawn ssh error &quot;subsystem request failed on channel 0&quot;

    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"...
  4. vinhnguyen18

    Please Help! how to Expect from System command

    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...

Part and Inventory Search

Back
Top