blob: 430cfddd8e3224c7987a77475d61a5ebd99b33ef (
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
38
39
40
|
#$Id$
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
unshift @INC, '../../../../../bin';
require Process;
if ($^O eq "MSWin32")
{
system ("ipconfig | find \"Address\">ipnum");
open (IPNUM, "ipnum");
read (IPNUM, $line, 80);
($junk, $ip1, $ip2, $ip3, $ip4) = split (/: (\d+)\.(\d+)\.(\d+)\.(\d+)/, $line);
close IPNUM;
system ("del /q ipnum");
$uid = $ip4;
}
else
{
$uid = getpwnam (getlogin ());
}
$nsport = 20000 + $uid;
$client_port = 0;
$server_port = 0;
$iorfile = "theior";
$SV = Process::Create ("server".$Process::EXE_EXT,
"-ORBport ".$server_port." -ORBnameserviceport ".$nsport." -ORBobjrefstyle url");
sleep (2);
system ("client".$Process::EXE_EXT." -x -ORBnameserviceport ".$nsport." -ORBport ".$client_port );
|