Hello
I have a very simple tcl script which embeds expect to spawn a telnet to a modem and read its state.
Here it is
#!/usr/bin/tclsh
package require Expect
set modem "192.168.13.31"
proc state{arg} {
if {arg == 1} {
puts "modem will reboot"
send...
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.