Subject: Re: chat scripts
To: Jukka Marin <firstname.lastname@example.org>
From: Joel Reicher <email@example.com>
Date: 09/01/1998 00:26:47
> What is the proper way of using SAY and other commands in chat scripts?
> When I use SAY in the scripts, chat sends the "SAY" string to the modem
> and expects the SAY argument as a reply string.. argh. ;)
> This is what I have:
> ECHO OFF
> ABORT 'BUSY' ABORT 'NO CARRIER' ' ATZ OK-ATZ-OK
> ATL1 OK ATM1 OK
> SAY "Dialling...\n"
I haven't really experimented with this, but could it be that the commands
like SAY only work immediately after a _send_ string, not an expect string?
The man page for chat says that the script consists of "expect-send pairs",
which is why I'm suggesting this.