home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 19
/
AACD19.BIN
/
AACD
/
Online
/
SiteWay
/
Tools
/
Rexx
/
Get.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-01-15
|
814b
|
32 lines
/* Get.rexx - © 1999 by Christian Effenberger */
/* **** Execute from SHELL or double click ICON ! ***** */
/* This Script speaks to the ARexx-Port 'SIMPLEED_AREXX.1' */
/* and sends the Command 'Get' with one Argument. */
/* Syntax: Get <CHARACTER|CHARSTOBEGOFLINE|CHARSTOENDOFLINE|WORD|LINE|BUFFER> */
/* Result: String Value */
ADDRESS COMMAND 'WaitForPort SIMPLEED_AREXX.1'
IF (RC~=0) THEN DO
SAY "...could NOT find the ARexx port!"
EXIT
END
ELSE DO
ADDRESS 'SIMPLEED_AREXX.1'
OPTIONS RESULTS
'Get BUFFER'
/* 'Get CHARACTER' */
/* 'Get CHARSTOBEGOFLINE' */
/* 'Get CHARSTOENDOFLINE' */
/* 'Get WORD' */
/* 'Get LINE' */
IF (RC~=0) THEN DO
SAY "...could NOT execute the command!"
END
ELSE DO
SAY "The buffer content is: " || RESULT
END
EXIT
END