Difference between revisions of "Install xpl hub"
From xPL
(→Install the hub =) |
(→Test the hub) |
||
Line 21: | Line 21: | ||
= Test the hub = | = Test the hub = | ||
+ | |||
+ | Lanch the hub: | ||
+ | su control | ||
+ | /home/control/Documents/Controls/xpl-hub.pl -v | ||
+ | |||
+ | Monitor xPL messages: open a second terminal window and: | ||
+ | su control | ||
+ | /home/control/Documents/Controls/xpl-monitor.pl -v | ||
+ | |||
+ | Send a message: open a third terminal window and: | ||
+ | /home/control/Documents/Controls/xpl-send.pl -vc hbeat.end world=hello | ||
+ | |||
+ | You should see the corresponding <code>world=hello</code> message in the second terminal window. | ||
+ | |||
+ | If it works, stop all the running xPL scripts. | ||
+ | |||
+ | = Launch the hub at startup = |
Revision as of 12:48, 16 March 2014
My xPL hub is based on John Bent's xPL ToolKit for Perl.
Install the hub
Download the tarball. It contains:
-
xpl-hub.pl
: the hub -
xpl-monitor.pl
: a monitor which allows to view the xPL messages -
xpl-send.pl
: a utility for sending xPL messages -
xPL
: a directory containing Perl functions common to all the scripts
Move it to the location you want the scripts to reside.
This could be /opt/xPL
or /usr/opt/xPL
.
I personally create a control
user who will run these scripts
and I place the files in /home/control/Documents/Controls
on a Linux machine
or in /Users/control/Documents/Controls
on a Mac.
Extract it:
tar -xvjpf xPL_base.tar.bz2
Test the hub
Lanch the hub:
su control /home/control/Documents/Controls/xpl-hub.pl -v
Monitor xPL messages: open a second terminal window and:
su control /home/control/Documents/Controls/xpl-monitor.pl -v
Send a message: open a third terminal window and:
/home/control/Documents/Controls/xpl-send.pl -vc hbeat.end world=hello
You should see the corresponding world=hello
message in the second terminal window.
If it works, stop all the running xPL scripts.