home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxhll.zip
/
MODEM.REX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-11-19
|
569b
|
23 lines
/* #include <modem.rex> */
ModemWaitFor: procedure
/**
*** This will wait for a particular string for a particular time.
*** The code will block on an input character, so it is possible for
*** this code to hang completely. There is no non-blocking read
*** in REXX with which to implement a timeout.
**/
parse arg ComPort,Wait,String
call time('Reset')
InBound = ""
do while pos(String,InBound) == 0
InBound = InBound||CHARIN(ComPort)
if time('E') > Wait then
return 4
end
return 1