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>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_020C_01C0DC9C.BDF87700
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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



------=_NextPart_000_020C_01C0DC9C.BDF87700
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_020C_01C0DC9C.BDF87700--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




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