From owner-freebsd-isp Mon May 14 8:41:15 2001 Delivered-To: freebsd-isp@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 3E63037B423 for ; Mon, 14 May 2001 08:41:13 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f4EGsB928428; Mon, 14 May 2001 11:54:12 -0500 (CDT) (envelope-from nick@rogness.net) Date: Mon, 14 May 2001 11:54:11 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: David Wilson Cc: freebsd-isp@FreeBSD.ORG, isp linux Subject: Re: Telnet + command scripting run from crond In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 - 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