IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 9, 2010, 6:38:12 PM (16 years ago)
Author:
eugene
Message:

fix magic_process.pl to correctly run VerifyStreaks; updates to ippconfig for MAGIC output files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ippScripts/scripts/magic_process.pl

    r26812 r26835  
    290290    my $baseroot = shift;
    291291
    292     unless ($VerifyStreaks) { 
    293         print STDERR "skipping VerifyStreaks\n";
    294         return 1;
     292    unless ($VerifyStreaks) {
     293        print STDERR "skipping VerifyStreaks\n";
     294        return 1;
    295295    }
    296296
     
    300300
    301301    my($status) = system ("mkdir -p $outdir");
    302     if ($status) {
    303         print STDERR "failed to create output directory $outdir\n";
    304         return 1;
    305     }
     302    if ($status) {
     303        print STDERR "failed to create output directory $outdir\n";
     304        return 1;
     305    }
     306
     307    my $FILE;
    306308
    307309    my @files = <$baseroot.*.clusters>;
    308     unless (OPEN (FILE, ">$outdir/clusters.list")) {
    309         print "failed to create cluster file $outdir/clusters.list\n";
    310         return 1;
     310
     311    unless (open ($FILE, ">$outdir/clusters.list")) {
     312        print "failed to create cluster file $outdir/clusters.list\n";
     313        return 1;
    311314    }
    312315    foreach my $file (@files) {
    313         print FILE "$file\n";
    314     }
    315     close (FILE);
    316     if ($status) {
    317         print "failed to create cluster file $outdir/clusters.list\n";
    318         return 1;
     316        $file =~ s|.clusters$||;
     317        print $FILE "$file\n";
     318    }
     319    close ($FILE);
     320    if ($status) {
     321        print "failed to create cluster file $outdir/clusters.list\n";
     322        return 1;
    319323    }
    320324
     
    322326
    323327    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    324         run(command => $command, verbose => $verbose);
     328        run(command => $command, verbose => $verbose);
    325329    unless ($success) {
    326         print "failed to run VerifyStreaks:\n stderr: $stderr_buff\n stdout: $stdout_buff";
    327         return 1;
     330        print "failed to run VerifyStreaks:\n";
     331        return 1;
    328332    }
    329333
Note: See TracChangeset for help on using the changeset viewer.