From owner-freebsd-questions Fri Jan 29 10:16:17 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA20987 for freebsd-questions-outgoing; Fri, 29 Jan 1999 10:16:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gvinpin.grad.kiev.ua (KievglavArhit-UTC-28k8.ukrtel.net [195.5.25.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA20942 for ; Fri, 29 Jan 1999 10:16:09 -0800 (PST) (envelope-from Ruslan@Shevchenko.Kiev.UA) Received: from Shevchenko.Kiev.UA (kulshedra [10.0.1.99]) by gvinpin.grad.kiev.ua (8.8.7/8.8.7) with ESMTP id UAA20906; Fri, 29 Jan 1999 20:11:16 +0200 Message-ID: <36B1FB2A.462D1D32@Shevchenko.Kiev.UA> Date: Fri, 29 Jan 1999 20:17:15 +0200 From: Ruslan Shevchenko Reply-To: rssh@grad.kiev.ua X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: proktor47@usa.net CC: questions@FreeBSD.ORG Subject: Re: [Q] telnet session as a cron job References: <19990129173512.3978.qmail@yellow.axe.ru> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG proktor47@usa.net wrote: > Hello, > > Is it possible to do such task as a cron job? > Yes, using expect (in /usr/ports/lang, I quess) > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message