Subject: chat scripts
To: Port-i386 <port-i386@netbsd.org>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: port-i386
Date: 08/31/1998 16:19:20
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"
ATX3D01234567
And here's what syslog says:
Aug 31 16:09:48 orava chat[8135]: ATL1^M^M
Aug 31 16:09:48 orava chat[8135]: OK
Aug 31 16:09:48 orava chat[8135]: -- got it
Aug 31 16:09:48 orava chat[8135]: send (ATM1^M)
Aug 31 16:09:49 orava chat[8135]: expect (OK)
Aug 31 16:09:49 orava chat[8135]: ^M
Aug 31 16:09:49 orava chat[8135]: ATM1^M^M
Aug 31 16:09:49 orava chat[8135]: OK
Aug 31 16:09:49 orava chat[8135]: -- got it
Aug 31 16:09:49 orava chat[8135]: send (SAY^M)
Aug 31 16:09:49 orava chat[8135]: expect (Dialling...^J)
Aug 31 16:09:49 orava chat[8135]: ^M
Aug 31 16:09:56 orava chat[8135]: SIGINT <--- here I hit ctrl-c
Please help!
-jm