3 $EXEPREFIX = ".".$DIR_SEPARATOR;
4 $TARGETHOSTNAME = "localhost";
10 for($i = 0; $i <= $#ARGV; $i++) {
11 if ($ARGV[$i] eq '-ExeSubDir') {
12 if (defined $ARGV[$i + 1]) {
13 $::EXEPREFIX
= $ARGV[$i + 1].$::DIR_SEPARATOR
;
16 print STDERR
"You must pass a directory with ExeSubDir\n";
25 ### Check and remove, but don't actually use
28 for($i = 0; $i <= $#ARGV;) {
29 if ($ARGV[$i] eq '-Config') {
30 if (!defined $ARGV[$i + 1]) {
31 print STDERR
"You must pass a configuration with Config\n";
45 for($i = 0; $i <= $#ARGV; $i++) {
46 if ($ARGV[$i] eq '-chorus') {
47 if (defined $ARGV[$i + 1]) {
48 $::TARGETHOSTNAME
= $ARGV[$i + 1];
49 $::EXEPREFIX
= "rsh $::TARGETHOSTNAME arun $cwd$::DIR_SEPARATOR";
52 print STDERR
"The -chorus option requires " .
53 "the hostname of the target\n";
57 # Don't break from the loop just in case there
58 # is an accidental duplication of the -chorus option
64 # Returns a unique id, uid for unix, last digit of IP for NT
71 open (IPNUM
, "ipconfig|") || die "Can't run ipconfig: $!\n";
77 $uid = (split (/: (\d+)\.(\d+)\.(\d+)\.(\d+)/))[4];
87 return getpwnam (getlogin ());
91 # Waits until a file exists
95 sleep 1 while (!(-e
$file && -s
$file));
102 while ($maxtime-- != 0) {
103 if (-e
$file && -s
$file) {