From owner-freebsd-questions Fri Jan 29 10:01:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA18549 for freebsd-questions-outgoing; Fri, 29 Jan 1999 10:01:31 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from horton.iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA18542 for ; Fri, 29 Jan 1999 10:01:24 -0800 (PST) (envelope-from proot@horton.iaces.com) Received: (from proot@localhost) by horton.iaces.com (8.8.8/8.8.8) id MAA04856; Fri, 29 Jan 1999 12:01:21 -0600 (CST) (envelope-from proot) From: "Paul T. Root" Message-Id: <199901291801.MAA04856@horton.iaces.com> Subject: Re: [Q] telnet session as a cron job In-Reply-To: <19990129173512.3978.qmail@yellow.axe.ru> from "proktor47@usa.net" at "Jan 29, 99 05:35:12 pm" To: proktor47@usa.net Date: Fri, 29 Jan 1999 12:01:21 -0600 (CST) Cc: questions@FreeBSD.ORG X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You'll need to do it in either expect or perl with a telnet module. In a previous message, proktor47@usa.net said: > Hello, > > Is it possible to do such task as a cron job? > > Right now I do it like this: > > $ telnet somehost someport | tee tmpfile > > command > > . > > . > > output > > . > > . > > quit > $ diff -q somefile tmpfile > > Thanks > > -- > Victor > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Being perfect is a terrible way to spend your life and guys are not equipped for it anyway. It is like a bear riding a bicycle: He can be trained to do it for short periods but he would rather be in the woods doing what bears do there. - Garrison Keillor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message