blob: 54a9c4ba695276753ec1d8abc24e509fec3a5ead (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#$Id$
# -*- perl -*-
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
unshift @INC, '../../../../bin';
require Process;
$server1_port = 0;
$server2_port = 0;
$ior1file = "theior1";
$ior2file = "theior2";
$sleeptime = 3;
$SV1 = Process::Create ("server_A".$Process::EXE_EXT,
" -ORBport $server1_port -o $ior1file ".
" -ORBobjrefstyle url");
$SV2 = Process::Create ("server_B".$Process::EXE_EXT,
" -ORBport $server2_port -o $ior2file ".
" -ORBobjrefstyle url");
sleep $sleeptime;
$status = system ("initiator".$Process::EXE_EXT.
" -ORBport $client_port ".
" -f $ior1file -g $ior2file");
$SV1->Kill (); $SV1->Wait ();
$SV2->Kill (); $SV2->Wait ();
unlink $ior1file;
unlink $ior2file;
# @@ Capture any errors from the server too.
exit $status;
|