From owner-freebsd-questions Thu Feb 5 04:25:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA11203 for questions-outgoing; Thu, 5 Feb 1998 04:25:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA11195 for ; Thu, 5 Feb 1998 04:25:31 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.7/8.8.7) with ESMTP id MAA01913; Thu, 5 Feb 1998 12:25:18 GMT (envelope-from kpielorz@tdx.co.uk) Message-ID: <34D9AFAE.A60F3F86@tdx.co.uk> Date: Thu, 05 Feb 1998 12:25:18 +0000 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Dan Welch CC: QUESTIONS@FreeBSD.ORG Subject: Re: modem auto answer periods References: <980205071812.21000268@mail.wofford.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" Maybe you could use CHAT to do this? - i.e. send "AT", expect "OK", send "ATS0=0", expect "OK" etc.? - This can have 'error recovery' (i.e. it keeps trying, or issues an ATZ etc.) as well as logging, and you can probably replace the echo your using in the Cron with it... Regards, Karl Pielorz Dan Welch wrote: > > What's the best way to turn auto-answer on and off automatically at > specified times? It's clear that cron does this job; what I seek is > an appropriate way to handle the modem. I tried having cron just > echo the command sequences (e.g. ats0=0) to the modem, but that does > not work well for some modems: after a few cycles of this they get > out of sync with the system and require manual intervention even > though I am using hardware handshaking.