hi,
Trying to execute a perl script to migrate views in clearcase. Having some issues when executing script get the following error:
Can't cd to (D:/ClearCaseStorage/Views/STOCKBROKERS/user1/) user1.vws :
No such file or directory
Can't cd to (D:/ClearCaseStorage/Views/STOCKBROKERS/) user2 : No such file
or directory
Can't cd to (D:/ClearCaseStorage/Views/STOCKBROKERS/) user3 : No such file or
directory
Leaving D:/ClearCaseStorage/Views/STOCKBROKERS
This the piece of code which is affected.
sub Wanted{
if (m/^(.*?).vws/i){
print "############################################\n";
print "Working on view $1\n";
print "With view $_ \n";
$path = cwd;
$ccpath = $path."/".$_;
if ($ccpath){
print "$ccpath \n";
# Run fix_prot
print "Run fix_prot\n" ;
$var = "C:\\Program Files\\Rational\\ClearCase\\etc\\utils\\";
chdir($var) or die ("Cannot change to dir '$var': $!");
$cmd = "fix_prot -r -root -chown th_clearcase -chgrp guests \"$ccpath\"" ; &execute_cmd ;
The problem seems to be with the path to the vob its using / instead or \, so when it need to cd to the view directory, its getting confused, how can i change this to cd to the correct directory.
Trying to execute a perl script to migrate views in clearcase. Having some issues when executing script get the following error:
Can't cd to (D:/ClearCaseStorage/Views/STOCKBROKERS/user1/) user1.vws :
No such file or directory
Can't cd to (D:/ClearCaseStorage/Views/STOCKBROKERS/) user2 : No such file
or directory
Can't cd to (D:/ClearCaseStorage/Views/STOCKBROKERS/) user3 : No such file or
directory
Leaving D:/ClearCaseStorage/Views/STOCKBROKERS
This the piece of code which is affected.
sub Wanted{
if (m/^(.*?).vws/i){
print "############################################\n";
print "Working on view $1\n";
print "With view $_ \n";
$path = cwd;
$ccpath = $path."/".$_;
if ($ccpath){
print "$ccpath \n";
# Run fix_prot
print "Run fix_prot\n" ;
$var = "C:\\Program Files\\Rational\\ClearCase\\etc\\utils\\";
chdir($var) or die ("Cannot change to dir '$var': $!");
$cmd = "fix_prot -r -root -chown th_clearcase -chgrp guests \"$ccpath\"" ; &execute_cmd ;
The problem seems to be with the path to the vob its using / instead or \, so when it need to cd to the view directory, its getting confused, how can i change this to cd to the correct directory.