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

    Expect: sending multiple statements in one send command

    okay, Following worked for me. set lastcmd [lindex $cmd [expr [llength $cmd] - 1]] set cmd [join $cmd "\r"] send -i $procid "$cmd\r" expect { -i $procid -re "$lastcmd" { lappend buff $expect_out(buffer) } full_buffer { puts "buffer full" lappend...
  2. nkhambal

    Expect: sending multiple statements in one send command

    Hi, I am trying to write a customized library for configuring routers. In my config proc I send a "List" of commands and "join" then with "\r". However, using send/expect in proc limits my ability to send one command at a time. I send a command and I check for prompt returned by router. What I...

Part and Inventory Search

Back
Top