home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
rx_slip.zip
/
chk_once.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-10-03
|
1KB
|
47 lines
/*--------------------------------------------------------------*/
/* NOTE: Adjust the following as required by your configuration */
PortName = 'COM2'
/*--------------------------------------------------------------*/
PortHandle = ''
True = 1
False = 0
Regular = 2
Critical = 3
NormalLvl = 0
InpStr = ''
Remaining = 0
crlf = D2C(13)''D2C(10)
none_on = '00'
dtr_on = '01'
rts_on = '02'
both_on = '03'
none_off = 'FF'
dtr_off = 'FE'
rts_off = 'FD'
both_off = 'FC'
call RxFuncAdd 'RxAsyncLoadFuncs', 'RXASYNC', 'RxAsyncLoadFuncs'
call RxAsyncLoadFuncs
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysloadFuncs'
call SysLoadFuncs
/* open device */
rc = RxAsyncOpen( PortName, 'PortHandle' )
if rc <> 0 then exit
rc = RxAsyncCarrier( PortHandle )
if rc = 0 then say 'RxAsyncCarrier detected DCD'
else do /* carrier lost */
'@go kill slip' /* kill slip.exe if found */
'@start slip.exe' /* restart slip.exe */
end
/* drop functions */
call RxAsyncDropFuncs
exit