Hi All,
 
I am executing following script. but even if the command execution fails
it prints as success exit status = 0
 
can anybody please help
 
Regards
Irfan.
 

use strict;
use warnings;
my $CT = '/usr/atria/bin/cleartool';
print " Creating the view for VB \n";
my $cmd = "$CT mkview -tag vb_test3 -tmode insert_cr -host puvob01
-hpath /home/ccvob01/vb_test3.vws -gpath /home/ccvob01/vb
_test3.vws /home/ccvob01/vb_test3.vws";
print "==> $cmd\n";
if (system("$cmd &> /tmp/jui") == 0) {
  print " success, exit status = $?\n";
} else {
  print " failure, exit status = $?\n";
}

 

Reply via email to