home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxcomm16.zip
/
samples
/
rxcInit.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-02-09
|
661b
|
30 lines
/**
* REXX Communication Control Function Library Ver.1.1
* copyright 1998, Naga(Kazuo Adachi)
* mailto:nagaw@ibm.net
* mailto:GDB00421@nifty.ne.jp
*
* $Id$
*
* $Log$
*/
ARG initStr
CALL RxFuncAdd 'RxCommLoadFuncs','RxComm','RxCommLoadFuncs'
CALL RxCommLoadFuncs
/*--------------------------------------------------------*/
/**
* Sending Modem Command
*/
rc = RxCommWrite( initStr || '0D'x )
DO FOREVER
rc = RxCommRead()
CALL CHAROUT , rc
IF POS( 'OK' , rc ) = 1 THEN RETURN 0
IF POS( 'ERROR', rc ) = 1 THEN RETURN 1
END
RETURN -1