blob: 11ddb3fb2034c2c4235b700b52c54752407fc5c7 (
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
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
unshift @INC, '../../../bin';
require ACEutils;
use Cwd;
$cwd = getcwd();
for($i = 0; $i <= $#ARGV; $i++) {
if ($ARGV[$i] eq '-chorus') {
$i++;
if (defined $ARGV[$i]) {
$EXEPREFIX = "rsh $ARGV[$i] arun $cwd$DIR_SEPARATOR";
}
else {
print STDERR "The -chorus option requires the hostname of the target\n";
exit(1);
}
}
}
$orb_init = Process::Create ($EXEPREFIX."ORB_init$EXE_EXT ");
$pid = $orb_init->TimedWait (15);
if ($pid == -1) {
print STDERR "ERROR: ORB_init timed out\n";
$orb_init->Kill (); $orb_init->TimedWait (1);
exit 1;
}
exit 0;
|