home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Loisirs 26
/
CDL26.iso
/
PLANETPC
/
WIN311
/
ELEMENTS
/
TWSK20B
/
LOGIN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-10-09
|
562b
|
36 lines
#trace on
#
# On rΘcupΦre le numΘro α appeler et la chaine d'init dans
# trumpwsk.ini:
#
load $numero
load $init
%attempts = 10
#
#
#----------------------------------------------------------
#
# initialisation du modem
#
output $init\13
if ! [input 10 OK\n]
display "Le modem ne rΘpond pas"\n
abort
end
#
# numΘrotation
#
%n = 0
repeat
if %n = %attempts
display "Trop de tentatives de connexion"\n
abort
end
output "atdt"$numero\13
%ok = [input 60 CONNECT]
%n = %n + 1
until %ok
input 10 \n
wait 30 dcd