P
Petterson Mikael
Hi,
I am executing the following perl script:
my @args = ("${arc_bin}/addproj", "-p $project", "-r $release", "-i
$isit");
system(@args) == 0 or die "could not execute $!";
The scalars are set to:
$project = 'espresso';
$release = 'rbssw/1.3';
$isit = '3.0';
In the perl script 'addproj' there is a validate method that takes 3
args. ( I don't have access to edit the script).
I get the following error message.
/app/arc/latest/bin/addproj: project/subproject/isit does not exist
system /app/arc/latest/bin/addproj -p espresso -r rbssw/1.3 -i 3.0
failed: 256 at /home/eraonel/dtest/dtest_perl-0.1/run_dtest.pl line 162.
In the subroutine there is check for directories. I have checked and
they exist. Any ideas why the system fails?
//Mikael
validate in addproj
--------------------------------------
f (! &validateproject($project, $release, $isit)) {
print STDERR "$0: project/subproject/isit does not exist\n";
exit 1;
}
sub validateproject
--------------------------------------
sub validateproject {
local $p=$_[0]; # project
local $r=$_[1]; # release
local $ir=$_[2];# isit
if ($p ne "" && $r ne "") { # Project & Release loaded
return $false if (! -d "$basedir/$p/$r");
}
return $false if (! -d "$basedir/isit/$ir");
return ($true);
}
I am executing the following perl script:
my @args = ("${arc_bin}/addproj", "-p $project", "-r $release", "-i
$isit");
system(@args) == 0 or die "could not execute $!";
The scalars are set to:
$project = 'espresso';
$release = 'rbssw/1.3';
$isit = '3.0';
In the perl script 'addproj' there is a validate method that takes 3
args. ( I don't have access to edit the script).
I get the following error message.
/app/arc/latest/bin/addproj: project/subproject/isit does not exist
system /app/arc/latest/bin/addproj -p espresso -r rbssw/1.3 -i 3.0
failed: 256 at /home/eraonel/dtest/dtest_perl-0.1/run_dtest.pl line 162.
In the subroutine there is check for directories. I have checked and
they exist. Any ideas why the system fails?
//Mikael
validate in addproj
--------------------------------------
f (! &validateproject($project, $release, $isit)) {
print STDERR "$0: project/subproject/isit does not exist\n";
exit 1;
}
sub validateproject
--------------------------------------
sub validateproject {
local $p=$_[0]; # project
local $r=$_[1]; # release
local $ir=$_[2];# isit
if ($p ne "" && $r ne "") { # Project & Release loaded
return $false if (! -d "$basedir/$p/$r");
}
return $false if (! -d "$basedir/isit/$ir");
return ($true);
}