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
/
FENICS.SCR
< prev
next >
Wrap
Text File
|
1993-01-04
|
2KB
|
76 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. !
! !
! FENICS Script: !
! Connect to FENICS through either NIFTY LL or CompuPass. !
! Arg1 contains TRUE if connect is to NIFTY LL and FALSE otherwise!
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! !
! $Revision:: 1.5 $ !
! !
!---------------------------------------------------------------------!
Host_Sent = %FALSE;
if Arg1 goto Define_NIF_Strings;
ConnectStr = "Connecting to CompuPass";
FailStr = "CompuPass not responding";
HostStr = "C CIS" & %CR;
goto Start_FENICS;
Define_NIF_Strings:
ConnectStr = "Connecting to NIFTY LL";
FailStr = "NIFTY LL not responding";
HostStr = "C CPS" & %CR;
Start_FENICS:
show ConnectStr;
Tries = 5;
on cancel goto Return_Cancel;
Wait_FENICS:
if Tries = 0 goto FENICS_Failure;
Tries = Tries - 1;
wait
"ready" goto Send_FENICS_Host,
"User ID:" goto Check_Success,
"Host Name:" goto Check_Success
until 80;
send %CR & %CR & %CR;
Host_Sent = %FALSE;
goto Wait_FENICS;
Send_FENICS_Host:
if Host_Sent goto Wait_FENICS;
send HostStr;
Host_Sent = %TRUE;
goto Wait_FENICS;
Check_Success:
if Host_Sent goto Return_Success;
goto Wait_FENICS;
FENICS_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;