IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2009, 11:33:59 AM (17 years ago)
Author:
bills
Message:

add logfile argument don't print newline if exposure was skipped

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/ipp_apply_burntool.pl

    r24538 r24679  
    2020use Pod::Usage qw( pod2usage );
    2121
    22 my ( $class_id, $dateobs_begin, $dateobs_end, $skip_burned, $dbname, $verbose, $save_temps);
     22my ( $class_id, $dateobs_begin, $dateobs_end, $skip_burned, $dbname, $logfile, $verbose, $save_temps);
    2323GetOptions(
    2424    'class_id=s'        => \$class_id, # chip identifier
     
    2626    'dateobs_end=s'     => \$dateobs_end, # exposure date/time range stop
    2727    'dbname|d=s'        => \$dbname, # Database name
     28    'logfile=s'         => \$logfile,
    2829    'skip_burned'       => \$skip_burned,   # Print to stdout
    2930    'verbose'           => \$verbose,   # Print to stdout
     
    8687# IPP configuration (including nebulous)
    8788my $ipprc = PS::IPP::Config->new() or my_die("Unable to set up");
     89
     90$ipprc->redirect_output($logfile) if $logfile;
    8891
    8992my $Nfiles = @files;
     
    172175            &my_die("failed to update imfile");
    173176        }
     177        print "\n";
    174178    }
    175179    # save the artifact file for the next image
     
    179183        $prevFileOpt = "infits=$artImfileReal";
    180184    }
    181     print "\n";
    182185}
    183186
Note: See TracChangeset for help on using the changeset viewer.