home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cardinal Internet Access Solutions
/
Cardinal_Internet_Access_Solutions(1996-08-19).iso
/
files
/
internet
/
fibs
/
example.scr
< prev
next >
Wrap
Text File
|
1994-04-27
|
2KB
|
77 lines
@echo 0 ;%%Simple example of a UNIX login script.
@rem ******************************************************************
@rem *** SIMPLE.SCC: A simple example of an automated login script ***
@rem *** This script works for a UNIX dial-up host with csh ***
@rem *** as the default shell. ***
@rem ******************************************************************
@rem ** Dial the number **
@echo "Dialing..\r\n"
@send "%DialStringPrefix%%TelephoneNumber%\r"
@rem ** Respond to the login prompt **
@if not @wait "ogin:" 50
@ echo "\r\n** ERROR: login prompt not received\r\n"
@ rem ** the following line terminates script execution. **
<
@endif
@send "%HostLoginName%\r"
@rem ** Respond to the password prompt **
@if %HostPassword% != ""
@ if not @wait "assword:" 10
@ echo "\r\n** ERROR: Password prompt not received\r\n"
<
@ endif
@ send "%HostPassword%\r"
@ wait '%' ; Wait indefinitely for the csh command prompt.
@else
@ echo "\r\n** Script execution will resume after you type your password\r\n"
@ wait "%" ; Wait indefinitely for the csh command prompt.
@endif
@rem ** Establish the telnet connection **
@send "\r" ; Get a second csh prompt just to make sure@
@if not @wait '%' 20
@ echo "\r\n** ERROR: csh prompt not received\r\n"
<
@endif
@send "telnet %FibsInternetAddress% %FibsTelnetPort%\r"
@rem ** Log in to FIBS
@if "%FibsLoginName%" != ""
@ wait "ogin:" 30
@ send "%FibsLoginName%\r"
@ wait "\n"
@ if "%FibsPassword" != ""
@ wait "word:" 30
@ send "%FibsPassword%\r"
@ wait "\n>" 40
@ else
@ "echo ** Script execution will resume after you type your password\r\n"
@ wait "\n>"
@ endif
@else
@ wait "\n>" ; Wait indefinitely for the FIBS prompt
@endif
@rem ** Initialize FIBS
@send "set boardstyle 3\r"
@wait "Value of" 40
@wait "\n>"
@send "toggle automove\r"
@wait "**" 40
@wait "\n>"
@echo "\r****** CONNECTED ******\r\n>"