Never done anything in ARexx. Absolute newbie ?
Here is a short introduction:
ARexx is a scripting language to send commands to a so called 'host'.
A host is an application with a message port, that listens to ARexx.
So what we do is simply sending a message containing our code. The host has
to interpet it and if possible process it. Whether the host answers back with
valid return codes or not is up to host.
ARexx has 2 special vars to deal with return values. See later Chapter
ARexx requires the RexxMaster to be up and running. RexxMast can be found
in Sys:System.
To create an ARexx script any editor will do. Ed from C: or emacs or your preferred editor.
If you don't have an editor at hand, you can still use AmigaDOS commands to create a script.
An ARexx script starts with a comment. A comment is one or more lines encapsuled in /* */.
ARexx has no variable typing, that means a var has not to be declared as Int, Float, String.
You might use any single char as a variable.
welcome = 'Hello Folks' /* now welcome contains a string*/
welcome = 7 /* is now overwritten with a number */
welcome = RESULT /* and now contains what the host replied */
A very basic script looks like:
Code:
/*
* Very, very basic stuff
* $VER: Verybasicstuff 1.0 (04.07.15)
*/
w = 'Hello, world !'
Say w /*or simply say 'Hello, world!'*/
Exit
The thread is too long
Time for a TOC
********************************************
First steps
Run from shell
Using quotation marks
Addressing hosts
Symbols and operators
introducing functions
Analyze strings
List of commands
List of functions
Console input
Counting words
String searching and replacing
Interrupt Signals
Checking return codes
Tracing
Decrypting trace output
Special character
Function usage
Creating functions and commands
Parsing arguments
Code obfuscation
Parsing with variable length
Parsing strings from DirOpus4
Loops
Adding libraries
Create and open a rexx port