ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/DBTools/scripts/crabclean
(Generate patch)

Comparing UserCode/OSUT3Analysis/DBTools/scripts/crabclean (file contents):
Revision 1.2 by ahart, Fri Oct 19 16:41:12 2012 UTC vs.
Revision 1.3 by ahart, Wed Feb 6 00:33:04 2013 UTC

# Line 76 | Line 76 | printHelp
76    $exeName =~ s/^.*\/([^\/]*)$/$1/;
77  
78    print "Usage: $exeName [OPTION]... CRAB_DIR OUTPUT_DIR\n";
79 +  print "  or: $exeName -d [OPTION]... OUTPUT_DIR\n";
80    print "Deletes excess EDM output caused by multiple CRAB submissions using the results\n";
81    print "contained in the CRAB working directory provided.\n";
82    print "\n";
# Line 107 | Line 108 | parseCrabDir
108        my @status = `grep 'ExitStatus' $crabDir/res/$file`;
109        my $wrapperStatus = $status[0];
110        $wrapperStatus =~ s/^.*ExitStatus="([^"]*)".*$/$1/;
111 +      $wrapperStatus =~ s/\n//g;
112        if ($wrapperStatus != 0)
113          {
114            print "Job $jobNumber failed (return value $wrapperStatus). Skipping.\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines