summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rwxr-xr-xexample/ivyprobe.pl35
1 files changed, 17 insertions, 18 deletions
diff --git a/example/ivyprobe.pl b/example/ivyprobe.pl
index bb25a14..12f1520 100755
--- a/example/ivyprobe.pl
+++ b/example/ivyprobe.pl
@@ -27,6 +27,7 @@ use Getopt::Long;
use Term::ReadLine;
use Tk;
+my $appliname = "IVYPROBE.PL";
my $bus;
# for each application gives the number of running instances
@@ -39,16 +40,16 @@ my %where_applications;
if (defined $bus) {
Ivy->init (-ivyBus => $bus,
- -appName => "IVYPROBE.PL",
+ -appName => $appliname,
# -loopMode => 'TK',
-loopMode => 'LOCAL',
- -messWhenReady => 'IVYPROBE READY',
+ -messWhenReady => "$appliname READY",
); }
else {
- Ivy->init (-appName => "IVYPROBE.PL",
+ Ivy->init (-appName => $appliname",
# -loopMode => 'TK',
-loopMode => 'LOCAL',
- -messWhenReady => 'IVYPROBE READY',
+ -messWhenReady => "$appliname READY",
);
}
@@ -248,11 +249,11 @@ ivyprobe.pl - simple application to test ivy, to test other ivy-application or t
=head1 SYNOPSIS
-ivyprobe.pl [-h] [-b <network>:<port> ] ['regexp']*
+B<ivyprobe.pl> [-h] [-b <network>:<port> ] ['regexp']*
=head1 DESCRIPTION
-B<ivyprobe> connects to the bus and offers a simple text interface to receive and send messages, and to subscribe to messages. It is very similar to the C version named ivyprobe.
+B<ivyprobe.pl> connects to the bus and offers a simple text interface to receive and send messages, and to subscribe to messages. It is very similar to the C version named ivyprobe.
If regexps are given as parameters it subscribes to theses regexp.
@@ -262,39 +263,39 @@ The user can input the following commands:
=over
-=item .h[elp]
+=item B<.h[elp]>
to get the list of available commands and short explanations
-=item .q[uit]
+=item B<.q[uit]>
to terminate the application.
-=item .b[ind] regexp
+=item B<.b[ind] regexp>
to add a subscription to messages matching the regexp.
-=item .die appname
+=item B<.die appname>
to send a die msg to appname. This application will stop.
-=item .db[ind] id
+=item B<.db[ind] id>
to add a direct msg of type id to receive
-=item .d[irect] appname id string
+=item B<.d[irect] appname id string>
to send a direct msg to appname. The message type is indicated by id
-=item .where appname
+=item B<.where appname>
To get the host on which appname is/are running
-=item .who
+=item B<.who>
to get the list of all connected applications
-=item .h[elp]
+=item B<.h[elp]>
to get the list of available commands and short explanations
@@ -317,8 +318,6 @@ Christophe Mertz <mertz@cena.fr>
=head1 COPYRIGHT
-CENA (C) 2000
-
-=head1 HISTORY
+CENA (C) 2000-2001
=cut