From owner-freebsd-questions Wed Sep 24 02:17:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA17684 for questions-outgoing; Wed, 24 Sep 1997 02:17:29 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA17678 for ; Wed, 24 Sep 1997 02:17:22 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id SAA10212; Wed, 24 Sep 1997 18:47:14 +0930 (CST) Message-ID: <19970924184714.65118@lemis.com> Date: Wed, 24 Sep 1997 18:47:14 +0930 From: Greg Lehey To: Snob Art Genre Cc: questions@FreeBSD.ORG Subject: Re: chat script References: <19970924180641.63284@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Snob Art Genre on Wed, Sep 24, 1997 at 04:41:12AM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Sep 24, 1997 at 04:41:12AM -0400, Snob Art Genre wrote: > On Wed, 24 Sep 1997, Greg Lehey wrote: > >> On Wed, Sep 24, 1997 at 03:38:35AM -0400, Snob Art Genre wrote: >>> I am having a very hard time getting a chat script working. >>> >>> It needs to dial my ISP, expect ">", send "ppp", do the login/password >>> thing and exit. >> >> And what's the problem? > > How do I set the device name when I run chat myself? "chat -f scriptfile >> /dev/modem"? Here's how I start pppd. This file is /etc/ppp/pppd.start: -------------------------------------------------- pppd /dev/cuaa2 57600 connect 'chat -f /etc/ppp/pppd.chat' -------------------------------------------------- And /etc/ppp/pppd.chat is something like: -------------------------------------------------- # Abort the chat script if the modem replies BUSY or NO CARRIER ABORT BUSY ABORT 'NO CARRIER' # Wait up to 5 seconds for the reply to each of these TIMEOUT 5 '' ATZ OK ATD # Wait 40 seconds for connection TIMEOUT 40 CONNECT -------------------------------------------------- Greg