IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 9, 2012, 5:59:53 PM (14 years ago)
Author:
bills
Message:

make redirect-output the default add --no-redirect-output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/rundiffskycell.pl

    r31941 r33065  
    2525
    2626my $dbname = "gpc1";
    27 my ($diff_id, $skycell_id, $threads, $update, $redirect);
     27my ($diff_id, $skycell_id, $threads, $update, $no_redirect);
    2828my $zaplog;
    2929
     
    3232    'skycell_id=s'      => \$skycell_id,
    3333    'threads=i'         => \$threads,
    34     'redirect-output'   => \$redirect,
     34    'no-redirect-output'  => \$no_redirect,
    3535    'zaplog'            => \$zaplog,
    3636    'update'            => \$update,
     
    4444    if !$diff_id or !$skycell_id;
    4545
    46 # if we're asked to update redirect the output
    47 $redirect = 1 if $update;
    4846
    4947my $ipprc =  PS::IPP::Config->new();
     
    6967my $command = "diff_skycell.pl --diff_id $diff_id --skycell_id $skycell_id --diff_skyfile_id $diff_skyfile_id --outroot $path_base --run-state new";
    7068
    71 $command .= " --redirect-output" if $redirect;
     69$command .= " --redirect-output" unless $no_redirect;
    7270$command .= " --no-update" unless $update;
    7371$command .= " --verbose" unless $no_verbose;
     
    8078print "command to process this skycell\n";
    8179print "$command\n";
     80
     81exit 0 if $pretend;
    8282
    8383if ($update) {
     
    9595}
    9696
    97 print "command to process this skycell\n";
    98 print "$command\n";
    99 
    100 exit 0 if $pretend;
    10197
    10298exit system $command;
     
    133129=head1 SYNOPSIS
    134130   
    135     perl rundiffskyfile.pl --diff_id <diff_id> --skycell_id <skycell_id> [--threads <num_threads>] [--update] [--redirect-output] [--pretend] [--dbname <dbname>]
     131    perl rundiffskyfile.pl --diff_id <diff_id> --skycell_id <skycell_id> [--threads <num_threads>] [--update] [--no-redirect-output] [--pretend] [--dbname <dbname>]
    136132
    137133Query the database for the results of a diff skycell and rerun the processing, optionally reverting a faulted
     
    161157Optional.
    162158
    163 =item *  --redirect-output
     159=item *  --no-redirect-output
    164160
    165 Send the output of the command to the logfile. (This is the default if --update is supplied).
     161Don't redirect script output to logfile.
    166162Optional.
    167163
Note: See TracChangeset for help on using the changeset viewer.