IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2009, 10:22:11 AM (17 years ago)
Author:
bills
Message:

use a temporary file for output from dist_bundle.pl. stdout is too noisy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/dist_bundle.pl

    r26042 r26044  
    88use Sys::Hostname;
    99my $host = hostname();
    10 print "\n\n";
    11 print "Starting script $0 on $host\n\n";
     10# print "\n\n";
     11# print "Starting script $0 on $host\n\n";
    1212
    1313use vars qw( $VERSION );
     
    6060# Parse the command-line arguments
    6161my ($camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $clean);
    62 my ($outdir, $run_state, $data_state, $magicked, $no_magic, $poor_quality);
     62my ($outdir, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $results_file);
    6363my ($dbname, $save_temps, $verbose, $no_update, $logfile);
    6464
    6565GetOptions(
     66           'results_file=s' => \$results_file,     # camera for evaluating file rules
    6667           'camera=s'       => \$camera,     # camera for evaluating file rules
    6768           'stage=s'        => \$stage,      # raw, chip, warp, or diff
     
    303304}
    304305
    305 print "bundleResults MULTI\n\n";
    306 print "bundleResults METADATA\n";
    307 print "   name      STR    $file_name\n";
    308 print "   bytes     S64    $bytes\n";
    309 print "   md5sum    STR    $md5sum\n";
    310 print "END\n\n";
     306if ($results_file) {
     307    open RF, ">$results_file" or &my_die("unable to open results file $results_file", $component, $PS_EXIT_UNKNOWN_ERROR);
     308    print RF "bundleResults MULTI\n\n";
     309    print RF "bundleResults METADATA\n";
     310    print RF "   name      STR    $file_name\n";
     311    print RF "   bytes     S64    $bytes\n";
     312    print RF "   md5sum    STR    $md5sum\n";
     313    print RF "END\n\n";
     314
     315    close RF;
     316}
    311317
    312318exit 0;
Note: See TracChangeset for help on using the changeset viewer.