home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
comm
/
st.lzh
/
EXAMPLE.SCL
< prev
next >
Wrap
Text File
|
1986-05-05
|
2KB
|
61 lines
:** This is an example of an SCL file to call a given number
:** at a given time and redial if busy until a connection (up to
:** a given number of attempts and report the results.
clear |:** Start with all variables clear
xreg 4 |:** if USRobotics Courier 2400
|:** or Hayes 2400
set d "555-1212" |:** Number to call
set t "23:01:00" |:** Time of Day to call (11:01 pm)
set w "00:00:10 |:** Time to wait between redials
let r = 10 |:** Number of tries on busy
let s = %r
let f = 1 |:** redial count
print
if "$t" == "" goto nowait |:** if a wait time is given, wait
print "Waiting until $t"
wait until $t
:nowait
on error goto dial_error |:** goto 'REDIAL' if an error. ie busy
print "Dialing '$d'"
:dial_again
dial $d |:** dial the number given above
print
print "Connect at $time" |:** print the time of connect
|:** This is where you would place your
|:** logon info. For example:
|:**
|:** wait "00:00:01" wait 1 sec
|:** mprint "^m^m"; send 2 carriage returns
|:** match "name?" match the string "name?"
|:** mprint "Devon Maxwell" send your name
page |:** and alert the foreground task
end
:redial
if "$w" != "" wait $w |:** time to wait before redialing
if %f == 1 print "Redialing 1"; |:** if 1st redial print "Redialing"
if %f != 1 print ", %f"; |:** else just print number of attempt
let f = %f+1 |:** redial count
loop r dial_again |:** loop until R is zero
print
print "No answers at $d at $t after %s attempts."
end
:dial_error
if %err == 32 resume redial |:** if a BUSY error then redial
on error goto |:** else report error message