summaryrefslogtreecommitdiff
path: root/modules/CIAO/examples/Display/descriptors/run_NodeDaemons.pl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/examples/Display/descriptors/run_NodeDaemons.pl')
-rwxr-xr-xmodules/CIAO/examples/Display/descriptors/run_NodeDaemons.pl32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/CIAO/examples/Display/descriptors/run_NodeDaemons.pl b/modules/CIAO/examples/Display/descriptors/run_NodeDaemons.pl
new file mode 100755
index 00000000000..e07c2aedd67
--- /dev/null
+++ b/modules/CIAO/examples/Display/descriptors/run_NodeDaemons.pl
@@ -0,0 +1,32 @@
+eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
+
+# $Id$
+# -*- perl -*-
+
+use lib "$ENV{ACE_ROOT}/bin";
+use PerlACE::TestTarget;
+
+$tg = PerlACE::TestTarget::create_target (1) || die "Create target for ns failed\n";
+
+$iorbase1 = "NodeApp1.ior";
+$iorfile1 = $tg->LocalFile ($iorbase1);
+$iorbase2 = "NodeApp2.ior";
+$iorfile2 = $tg->LocalFile ($iorbase2);
+
+$iorfile1 = $tg->DeleteFile ($iorbase1);
+$iorfile2 = $tg->DeleteFile ($iorbase2);
+
+$CIAO_ROOT=$ENV{'CIAO_ROOT'};
+
+$SV1 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_node_manager",
+ "-ORBEndpoint iiop://localhost:10001 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication");
+
+$SV2 = $tg->CreateProcess ("$DANCE_ROOT/bin/dance_node_manager",
+ "-ORBEndpoint iiop://localhost:20001 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication");
+
+$SV1->Spawn ();
+$SV2->Spawn ();
+
+sleep (99999999999);