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 Mike Lewis 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. yuammy

    not able to use spawn telnet

    Cuz the file is empty so I think it only ran once. However, now it's working if I removed "exit" command. So now it is like set dataresult [list "gin:" "admin\r\n" "word:" "admin\r\n" ">" "getinfo\r\n"] so the telnet session won't be terminated by command but timeout. I also reduce the...
  2. yuammy

    not able to use spawn telnet

    hmm... but I checked test.txt which was empty or timeout waiting on gin. If i'm overwriting it, there should be something right? Thank you!
  3. yuammy

    not able to use spawn telnet

    Thank you. Right now I was able to use Poor Man's Expect to do telnet. But I wasn't able to telnet it twice such as proc getinfo {host} { set output [open test.txt w] set dataresult [list "gin:" "admin\r\n" "word:" "admin\r\n" ">" "getinfo\r\n" ">" "exit\r\n"] set final [vexpect [list $host...
  4. yuammy

    not able to use spawn telnet

    Hi, I'm trying to use TCL to write some scripts to do automation on our test equipment by telnet. But I keep having problem on telnet. Not sure if it's because the compatibility issue since the PC we're using is still Windows 98. The TCL version installed in PC is 8.0.5 My 1st attempt is to...

Part and Inventory Search

Back
Top