home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
n
/
newscr.zip
/
NEWSCR.EXE
/
CSIRNET.SCR
< prev
next >
Wrap
Text File
|
1992-12-30
|
3KB
|
84 lines
!---------------------------------------------------------------------!
! !
! Copyright (c) 1991 !
! 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. !
! !
! CSIR-Net Script: !
! Connect to CSIR-Net !
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! !
! $Revision: 1.0 !
! !
!---------------------------------------------------------------------!
CSIRnet_ID = "901040oz3u";
CIS_Address = "C10634679";
NUI_Tries = 5;
Tries = 2;
on cancel goto Return_Cancel;
show "Connecting to CSIR-Net";
wait until 50;
Wait_NUI:
if NUI_Tries = 0 goto CSIRnet_Failure;
NUI_Tries = NUI_Tries - 1;
send "X.28" & %CR;
wait
"NUI?" goto send_CSIRnet_password,
"NO CARRIER" goto CSIRnet_Logon_Failure
until 100;
goto Wait_NUI;
send_CSIRnet_password:
send CSIRnet_ID;
show "Waiting for TRIPLE-X ...";
Wait_CSIRnet:
if Tries = 0 goto CSIRnet_Logon_Failure;
Tries = Tries - 1;
wait
"NUI?" goto send_CSIRnet_password,
"SELECT ?" goto send_A,
"FOR MAIN INDEX" goto send_CIS_Address,
"NO CIRCUIT" goto send_CIS_Address,
"NO CARRIER" goto CSIRnet_Logon_Failure
until 350;
send %CR;
goto Wait_CSIRnet;
send_A:
send "A";
goto Wait_CSIRnet;
send_CIS_Address:
show "Sending CompuServe Address ...";
wait until 15;
send CIS_Address & %CR;
goto Return_Success;
CSIRnet_Failure:
define %FailureMsg = "CSIR-Net: No Response to X.28";
exit %Failure;
CSIRnet_Logon_Failure:
define %FailureMsg = "CSIR-Net: Logon Failure";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;