![]() |
JARRIX SYSTEMS Pty.Ltd. |
Almost in every book on a programming language, the phrase "Hello World" finds its way to the first examples. How about starting with it in our tutorial on "eEMU messaging languauge".
Assumption is made that whoever got as far as this article successfully installed eEMU, got it up and running and perhaps transformed xeb screen from boring grey to nice rainbow-like window by sending a few messages...
If you just installed eEMU, do not worry. You will see what can be done to your xeb screen by reading through a few simple examples. Let's get started...
Assumptions are that the eEMU server is installed on host localhost , listens on port 2345 and the password is icecream.
emsg1 -n localhost -p 2345 -w icecream -t 30m -s 4 -c EVERYBODY -m 'Hello World !'
This is what will appear in your xeb:
emsg1 -n anna -p 2345 -w icecream -t 1h -s 4 -c EVERYBODY -m 'Hello World !'
And this is your xeb now:
emsg1 -n localhost -p 2345 -w icecream -t 1h -s 3 -c EVERYBODY -m 'Hello World !'
Note: As the message was just refreshed, its lifetime has also been "reset" to 1 hour from now on.
Of course we can, but since the first string of the message (also called objectID) is significant for eEMU (to distinguish between messages), we have to either:
- change order of the greeting e.g. "Jarra Hello"
- change case of the first word e.g. "HELLO Jarra"
- change the greeting e.g. "Hi Jarra"
emsg1 -n localhost -p 2345 -w icecream -t 1h -s 3 -c EVERYBODY -m " Jarra Hello"
emsg1 -n localhost -p 2345 -w icecream -t 1h -s 3 -c EVERYBODY -m " HELLO Jarra"
emsg1 -n localhost -p 2345 -w icecream -t 1h -s 3 -c EVERYBODY -m ' Hi Jarra !'
Let's try the third option:
emsg1 -n localhost -p 2345 -w icecream -t 1h -s 3 -c EEMU -m 'Hi Jarra !'
export EMUSELECT=" grep EEMU "
Subsequently, Jarra's browser is restarted:
How did he do it ? There are 2 possible ways:
1) through the browser - Delete button:
2) using emsg1:
.emsg1 -o delete -n localhost -p 2345 -w icecream -m "anna:Hi"
Note: notice the syntax of the delete message. ResourceID following the "m" switch consists of the host sending the message (anna) and ObjectID - the first word of the message itself (Hi) - delimited by a colon (:) anna:Hi
1) using emsg1:
./emsg1 -o comment -n localhost -p 2345 -w icecream -m "anna:Hello Well Done "
2) through the browser - the Annotate button:
And the comment appers in the "Comment" field:
Note: notice the syntax of the "comment" message. ResourceID must be specified at the beginning of the "-m" switch followed by the actual text of the comment: "anna:Hello Well Done "
emsg1 -n localhost -p 2345 -w icecream -t 15m -s 2 -c EVERYBODY -m "Hi There"
emsg1 -n localhost -p 2345 -w icecream -t 5 -s 1 -c EVERYBODY -m "Just Hi"