wanting telnet to auto logon and issue a reboot command for adsl modem



Hi,

I want to reboot my adsl modem at specific interval.

I can reboot the modem manually by issuing the reboot command as
follows from the command prompt.


------------------
telnet 198.67.1.1
login:admin
password:admin
reboot
----------------------


But i want to make a batchfile or some sort of script/macro to do
this automatically at scheduled time..

but in batch file mode the command just doesnt get completed it gives
some error...


so any idea how i can give the above commands automatically...

Help will be greatly appreciated..

Thanks very much.

.



Relevant Pages

  • Re: EWF/DUA help needed
    ... > Your script does not reboot the device because it likely fails on the EXECUTE command. ... I have changed the script file, ... it may not be good implementation of your script for the purpose of changing running app with EWF on. ... > With EWF command you just commit a registry change to move/replace the JP.exe file on next reboot. ...
    (microsoft.public.windowsxp.embedded)
  • RE: Configuring NIC Card
    ... reboot use the full path command and stick it in your /etc/rc.local file. ... If the reader of the message is not the intended recipient, ... We recently upgraded our network switch to a 10/100 Mbps switch. ...
    (RedHat)
  • Re: EWF/DUA help needed
    ... Your script does not reboot the device because it likely fails on the EXECUTE command. ... it may not be good implementation of your script for the purpose of changing running app with EWF on. ... With EWF command you just commit a registry change to move/replace the JP.exe file on next reboot. ...
    (microsoft.public.windowsxp.embedded)
  • Re: F7: SELinux feature or bug?
    ... that's what was in the SElinux message thingie as suggestion. ... I retyped the command with the proper directory to share and now the ... you will want to run something like: (This will reboot the ... This is the safest way to relabel since no processes are running when this happens. ...
    (Fedora)
  • Re: Command Prompt Error
    ... I tried your suggestion but the problem still exits, The command prompt ... this command window which is executing by itself after every 30 sec. ... What happens when you reboot the machine? ...
    (microsoft.public.windows.file_system)