home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1997 April
/
dpcb0497.iso
/
Home
/
WINCIM
/
95
/
SCRIPTS.LIB
/
CSIRNET.SCR
< prev
next >
Wrap
Text File
|
1996-09-23
|
2KB
|
87 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.
!
! CSIR-Net:
! Connect to CSIR-Net
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.9.1"
!-V
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,
%mdm_Failure 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,
%mdm_Failure 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;
wait
%mdm_Failure goto CSIRnet_Logon_Failure,
"User ID:" goto Return_Success,
"Host Name:" goto Return_Success
until 50;
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;