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

    expect scrits exits before excuting without interact

    Hi I see the following behaviour for the piece of code given below: : : set def_router_cmd {def_router=`route -n | grep ^0.0.0.0|awk '{print \$2}'`} set pingcmd {ping -c 3 $def_router} send "$def_router_cmd\r" send "$pingcmd \r" puts "The output is '$expect_out(buffer)'." #interact Now...
  2. madhavbhamidipati

    expect script: variables holding commands?

    I wanted to set variables with a command to be executed on server. is it possible something like below? set def_router_cmd 'def_router=`route -n | grep ^0.0.0.0|awk '{print $2}'`' set ping_cmd="ping -c 3 $def_router" send $def_router_cmd\r send $ping_cmd\r tcl is interpreting $ which is...

Part and Inventory Search

Back
Top