Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2001 17:38:52 +0200
From:      "David Wilson" <davew@sai.co.za>
To:        <freebsd-isp@freebsd.org>
Cc:        "isp linux" <isp-linux@isp-linux.com>
Subject:   Telnet + command scripting run from  crond
Message-ID:  <NEBBJFIIGKGLPEBIJACLAEDODMAA.davew@sai.co.za>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi all, howzit going ?

I'm not to good at scripting so I really need help on this:
I have a USR NAS device that I need to telnet every 24 hrs and issue a
command to it, how could I write a script that I could run as a cron job
that would automatically login and issue the commands and then log out again
?
Thanks.
Any help would be greatly appreciated.

Regards

David Wilson

Technical Support Centre

The S.A Internet

0860 100 869

http://www.sai.co.za



[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana size=2>Hi all, howzit 
going ?</FONT></SPAN></DIV>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana size=2>I'm not to good at 
scripting so I really need help on this:</FONT></SPAN></DIV>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana size=2>I have a USR NAS 
device that I need to telnet every 24 hrs and issue a command to it, how could I 
write a script that I could run as a cron job that would automatically login and 
issue the commands and then log out again&nbsp;?</FONT></SPAN></DIV>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana 
size=2>Thanks.</FONT></SPAN></DIV>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana size=2>Any help would be 
greatly appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=148283515-14052001><FONT face=Verdana 
size=2></FONT></SPAN>&nbsp;</DIV>
<P style="MARGIN: 0px; WORD-SPACING: 0px; TEXT-INDENT: 0px" align=left><FONT 
size=2>Regards</FONT></P>
<P style="MARGIN: 0px; WORD-SPACING: 0px; TEXT-INDENT: 0px" align=left><FONT 
size=2>David Wilson</FONT></P>
<P style="MARGIN: 0px; WORD-SPACING: 0px; TEXT-INDENT: 0px" align=left><FONT 
size=2>Technical Support Centre</FONT></P>
<P style="MARGIN: 0px; WORD-SPACING: 0px; TEXT-INDENT: 0px" align=left><FONT 
size=2>The S.A Internet</FONT></P>
<P style="MARGIN: 0px; WORD-SPACING: 0px; TEXT-INDENT: 0px" align=left><FONT 
size=2>0860 100 869</FONT></P>
<P style="MARGIN: 0px; WORD-SPACING: 0px; TEXT-INDENT: 0px" align=left><FONT 
size=2>http://www.sai.co.za</FONT></P>;
<DIV>&nbsp;</DIV></BODY></HTML>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBJFIIGKGLPEBIJACLAEDODMAA.davew>