Changeset 32379
- Timestamp:
- Sep 9, 2011, 11:05:10 AM (15 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 7 edited
-
camera_exp.pl (modified) (1 diff)
-
diff_skycell.pl (modified) (3 diffs)
-
register_exp.pl (modified) (1 diff)
-
register_imfile.pl (modified) (1 diff)
-
stack_skycell.pl (modified) (1 diff)
-
warp_overlap.pl (modified) (1 diff)
-
warp_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r31906 r32379 88 88 89 89 if ($redirect) { 90 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $cam_id, $PS_EXIT_SYS_ERROR );90 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $cam_id, $PS_EXIT_SYS_ERROR ); 91 91 print "\n\n"; 92 92 print "Starting script $0 on $host\n\n"; -
trunk/ippScripts/scripts/diff_skycell.pl
r31941 r32379 40 40 my ($skycell_id, $diff_skyfile_id); 41 41 my ($use_convolved); 42 my $zaplog = 0;43 42 44 43 GetOptions( … … 57 56 'no-op' => \$no_op, # Don't do any operations? 58 57 'redirect-output' => \$redirect, 59 'zaplog' => \$zaplog, # delete any previous log file60 58 ) or pod2usage( 2 ); 61 59 … … 79 77 80 78 # 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);83 79 my $logDest = "$outroot.log"; 84 80 if ($run_state eq 'update') { 85 81 $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; 92 84 93 85 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF); -
trunk/ippScripts/scripts/register_exp.pl
r31043 r32379 54 54 55 55 my $ipprc = PS::IPP::Config->new() or my_die( "Unable to set up", $exp_id, $PS_EXIT_CONFIG_ERROR ); 56 $ipprc->redirect_ output($logfile) or my_die( "Unable to redirect output", $exp_id, $PS_EXIT_SYS_ERROR ) if $logfile;56 $ipprc->redirect_to_logfile($logfile) or my_die( "Unable to redirect output", $exp_id, $PS_EXIT_SYS_ERROR ) if $logfile; 57 57 58 58 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; -
trunk/ippScripts/scripts/register_imfile.pl
r32298 r32379 60 60 61 61 my $ipprc = PS::IPP::Config->new() or my_die_for_add( "Unable to set up", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 62 $ipprc->redirect_ output($logfile) or my_die_for_add( "Unable to redirect output", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_SYS_ERROR ) if $logfile;62 $ipprc->redirect_to_logfile($logfile) or my_die_for_add( "Unable to redirect output", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_SYS_ERROR ) if $logfile; 63 63 64 64 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; -
trunk/ippScripts/scripts/stack_skycell.pl
r32371 r32379 104 104 } 105 105 106 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $stack_id, $PS_EXIT_SYS_ERROR ) if $redirect;106 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $stack_id, $PS_EXIT_SYS_ERROR ) if $redirect; 107 107 108 108 my $neb; -
trunk/ippScripts/scripts/warp_overlap.pl
r27718 r32379 57 57 58 58 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $warp_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 59 $ipprc->redirect_ output($logfile) or my_die( "Unable to redirect output", $warp_id, $PS_EXIT_SYS_ERROR ) if $logfile;59 $ipprc->redirect_to_logfile($logfile) or my_die( "Unable to redirect output", $warp_id, $PS_EXIT_SYS_ERROR ) if $logfile; 60 60 61 61 &my_die("Tessellation identifier not provided: $tess_dir", $warp_id, $PS_EXIT_SYS_ERROR) unless $tess_dir ne "NULL"; -
trunk/ippScripts/scripts/warp_skycell.pl
r31941 r32379 38 38 39 39 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps); 40 my $zaplog = 0;41 40 42 41 GetOptions( … … 55 54 'no-update' => \$no_update, # Don't update the database? 56 55 'no-op' => \$no_op, # Don't do any operations? 57 'zaplog' => \$zaplog, # delete previous logfile58 56 'redirect-output' => \$redirect, 59 57 'save-temps' => \$save_temps, # Save temporary files? … … 77 75 my $do_stats; 78 76 if ($run_state eq 'new') { 79 $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, $zaplog);77 $logDest = $ipprc->filename("LOG.EXP", $outroot, $skycell_id); 80 78 $traceDest = prepare_output("TRACE.EXP", $outroot, $skycell_id, 1); 81 79 $do_stats = 1; 82 80 } elsif ($run_state eq 'update') { 83 $logDest = prepare_output("LOG.EXP.UPDATE", $outroot, $skycell_id, 1);81 $logDest = $ipprc->filename("LOG.EXP.UPDATE", $outroot, $skycell_id); 84 82 $traceDest = prepare_output("TRACE.EXP.UPDATE", $outroot, $skycell_id, 1); 85 83 } else { … … 93 91 } 94 92 95 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect;93 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect; 96 94 97 95 # Recipes to use based on reduction class
Note:
See TracChangeset
for help on using the changeset viewer.
