IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32870 for trunk/ippScripts


Ignore:
Timestamp:
Dec 6, 2011, 10:14:54 AM (15 years ago)
Author:
bills
Message:

use $ipprc->redirect_to_logfile()

File:
1 edited

Legend:

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

    r32806 r32870  
    9999
    100100my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    101 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile;
     101
     102if ($logfile) {
     103    $ipprc->redirect_to_logfile($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR );
     104    print "\n\n";
     105    print "Continuing script $0 on $host at $date\n\n";
     106}
    102107
    103108$cam_reduction = 'DEFAULT' if !$cam_reduction or ($cam_reduction eq 'NULL');
     
    252257                foreach my $skycell (@$skycells) {
    253258                    my $skycell_uri;
     259                    $skycell->{quality} = undef;
    254260                    if ($skycell->{data_state} eq "full" and $skycell->{quality} == 0) {
    255261                        $skycell_uri = $ipprc->filename("PPSUB.OUTPUT", $skycell->{path_base});
Note: See TracChangeset for help on using the changeset viewer.