home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-04-27 | 457 b | 20 lines | [TEXT/dIsR] |
- script AttackDial -- Dial Hayes until connect
-
- state Dial
- send "\r"; send "AT\r";
- wait "OK"; -- This is bad. Should have timeout.
- send "ATDT3456789\r";
- select
- "CONNECT" : next GotIt;
- "BUSY" : next Dial;
- "NO CARRIER" : next Dial;
- timeout 22 : display "Dial timeout!"; next Dial;
- end;
- end; -- Dial
-
- state GotIt
- display "connected";
- end;
-
- end;
-