Hi everyone, I am new to this forum. I have a dlink 2730U modem for bsnl broadband ver IN_1.11. I have a script which restarts the modem periodically. the script is running through telnet but not working when I run it as shell script. the script is: USERNAME="admin"

PASSWORD="admin"
ROUTER_IP=192.168.1.1
(sleep 2;echo $USERNAME;sleep 2;echo $PASSWORD;sleep 2;echo 'reboot';sleep 2,echo 'quit')|telnet $ROUTER_IP
exit

but this script used to work fine in my dlink 2730u ver in_1.02.

ANY HELP WILL BE HIGHLY APPRECIATED.

MOds can move this to appropriate forums if needed.

thank you
A Chakrabarty