Example telnet script. This one telnets my modem and displays the list of open ports (including dynamic ones)
#!/bin/sh
host=10.0.0.138
port=23
cmd="nat list"
( echo open ${host} ${port}
sleep 1
echo -e "\r"
sleep 1
echo ${cmd}
sleep 1
echo -e "\r"
sleep 1
echo exit ) | telnet
FirstPost
(au cas ou)
VERY VERY VERY VERY VERY VERY VERY THANKS A LOT!!!!
You saved me!!! God bless you 4 ever!!!
Thanks a lot for this, really appreciated!
Thx!
Really needed that sort of thing to do a fine little router reconnecter on my ubuntu!
Thanks a lot for this script, with a few mods it saved my life :D
Hi,
I want to make a script that telnet the device (not a computer) after every hour and dumps the data in database.
I have to run it from windows.
Kindly help me in this problem
Regards