IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 9, 2011, 11:05:10 AM (15 years ago)
Author:
bills
Message:

Use redirect_to_logfile

File:
1 edited

Legend:

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

    r31941 r32379  
    4040my ($skycell_id, $diff_skyfile_id);
    4141my ($use_convolved);
    42 my $zaplog = 0;
    4342
    4443GetOptions(
     
    5756    'no-op'             => \$no_op, # Don't do any operations?
    5857    'redirect-output'   => \$redirect,
    59     'zaplog'            => \$zaplog, # delete any previous log file
    6058) or pod2usage( 2 );
    6159
     
    7977
    8078# XXX camera is not known here; cannot use filerules...
    81 # bills 2011-03-07 This is unfortunate because it prevents us from using prepare_output ...
    82 # my $logDest = $ipprc->filename("LOG.EXP", $outroot);
    8379my $logDest = "$outroot.log";
    8480if ($run_state eq 'update') {
    8581    $logDest .= '.update';
    86     # ... well we can just do the dirty work here
    87     $ipprc->kill_file($logDest);
    88 } elsif ($zaplog) {
    89     $ipprc->kill_file($logDest);
    90 }
    91 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect;
     82}
     83$ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect;
    9284
    9385my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF);
Note: See TracChangeset for help on using the changeset viewer.