Telnet Scripts

From: Steve Birchfield (sbirchfield1_at_yahoo.com)
Date: 01/27/04


Date: 27 Jan 2004 14:07:20 -0800

I have a SCO Unix server that I need to reboot on a regular basis
throughout the day due to an application problem. I would like a
script to run that does the following:

login as root
tcp stop (command)
netbios stop (command)
reboot (command)

That's all I need to do. I am using a windows PC to telnet in with
and I would like to create a batch file so I can just launch it and
let it reboot the server. Can anyone tell me a way to do this? I was
able to script in ftp but have not found a way so far with telnet.



Relevant Pages

  • Re: Telnet to reboot router
    ... connection when the connection is detected as having failed. ... Telnet ... Send command: "sys reboot" ...
    (uk.telecom.broadband)
  • Re: Telnet Scripts
    ... > I have a SCO Unix server that I need to reboot on a regular basis ... > netbios stop (command) ... Unless an SCO representative will help you, ...
    (comp.unix.admin)
  • Re: Telnet Scripts
    ... > I have a SCO Unix server that I need to reboot on a regular basis ... > netbios stop (command) ... > able to script in ftp but have not found a way so far with telnet. ...
    (comp.unix.admin)
  • Re: Telnet to reboot router
    ... Is there any way to use Telnet to reboot a Vigor router, ... Telnet <router IP> ... Send command: "sys reboot" ...
    (uk.telecom.broadband)
  • Re: Telnet Scripts
    ... the script can e-mail everyone of concern that a reboot is ... about to take place and then reboot the system. ... > netbios stop (command) ... > able to script in ftp but have not found a way so far with telnet. ...
    (comp.unix.admin)