Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2001 11:54:11 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        David Wilson <davew@sai.co.za>
Cc:        freebsd-isp@FreeBSD.ORG, isp linux <isp-linux@isp-linux.com>
Subject:   Re: Telnet + command scripting run from  crond
Message-ID:  <Pine.BSF.4.21.0105141151390.27699-100000@cody.jharris.com>
In-Reply-To: <NEBBJFIIGKGLPEBIJACLAEDODMAA.davew@sai.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 May 2001, David Wilson wrote:

> 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

	Check out `expect' in the ports. (/usr/ports/lang/expect).

	It's a scripting language that may be of use to you.

Nick Rogness <nick@rogness.net>
 - Keep on Routing in a Free World...
  "FreeBSD: The Power to Serve!"


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?Pine.BSF.4.21.0105141151390.27699-100000>