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