home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 7 Games
/
07-Games.zip
/
bemalph0.zip
/
srvrcom.rrx
< prev
next >
Wrap
Text File
|
1996-02-29
|
868b
|
49 lines
/* RhinoCom Script */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
CR = '0d'x
/* get the comport number from the user */
'RQUERY comport'
port = rc
'ENTRYFIELD "Enter COM port" "Enter Port" "'||port||'"'
port = rc
if port = '' then signal quit
'RSET comport' port
'UNLOADSPLICE BEMSPL'
call SysSleep 2
'opencomm'
call SysSleep 5
/*
'RQUERY @Host Mode'
cmd = rc
say 'host mode' cmd
*/
cmd = 'AT S0=1'||CR
'Send' cmd
say 'send rc' rc
/* -- this fast technique would sometimes crash on slow server machines
'response 1 match /CONNECT/ /RESPONSE 1 CANCEL/ /LOADSPLICE BEMSPL/'
*/
'response 1 match /CONNECT/'
done = 'false'
do until done == 'true'
call SysSleep 1
response 1 query
if ( rc > 0 ) then done = 'true'
end
'response 1 cancel'
call SysSleep 5
'loadsplice BEMSPL'