home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1998 February
/
DPCB0298.iso
/
CompuS
/
CSI26UK
/
SCRIPTS.LIB
/
LATA.SCR
< prev
next >
Wrap
Text File
|
1996-09-23
|
1KB
|
74 lines
!
! Copyright (c) 1996
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! LATA:
! Connect to LATA
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
! Arg1 = False if Network setting is LATA-Ct, True if LATA
!
!+V
! "3.9.1"
!-V
show "Connecting to LATA";
Tries = 5;
on cancel goto Return_Cancel;
Response_Char = ".";
if Arg1 = %TRUE goto Send_Response;
Response_Char = "H"; ! Ct. LATA selected
Send_Response:
if Tries = 0 goto LATA_Failure;
Tries = Tries - 1;
wait until 5;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send %CR;
Wait_LATA:
wait
"*" goto Send_LATA_Host,
"COM^M" goto Return_Success,
"Err" goto Send_LATA_Host,
%mdm_Failure goto LATA_Failure
until 70;
goto Send_Response;
Send_LATA_Host:
send ".CPS" & %CR;
goto Wait_LATA2;
Wait_LATA2:
wait
"*" goto Send_LATA_Host,
"COM" goto Return_Success,
"Err" goto Send_LATA_Host,
"Host Name" goto Return_Success,
%mdm_Failure goto LATA_Failure
until 80;
LATA_Failure:
define %FailureMsg = "LATA not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;