Changeset 33065
- Timestamp:
- Jan 9, 2012, 5:59:53 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tools/rundiffskycell.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/rundiffskycell.pl
r31941 r33065 25 25 26 26 my $dbname = "gpc1"; 27 my ($diff_id, $skycell_id, $threads, $update, $ redirect);27 my ($diff_id, $skycell_id, $threads, $update, $no_redirect); 28 28 my $zaplog; 29 29 … … 32 32 'skycell_id=s' => \$skycell_id, 33 33 'threads=i' => \$threads, 34 ' redirect-output' => \$redirect,34 'no-redirect-output' => \$no_redirect, 35 35 'zaplog' => \$zaplog, 36 36 'update' => \$update, … … 44 44 if !$diff_id or !$skycell_id; 45 45 46 # if we're asked to update redirect the output47 $redirect = 1 if $update;48 46 49 47 my $ipprc = PS::IPP::Config->new(); … … 69 67 my $command = "diff_skycell.pl --diff_id $diff_id --skycell_id $skycell_id --diff_skyfile_id $diff_skyfile_id --outroot $path_base --run-state new"; 70 68 71 $command .= " --redirect-output" if $redirect;69 $command .= " --redirect-output" unless $no_redirect; 72 70 $command .= " --no-update" unless $update; 73 71 $command .= " --verbose" unless $no_verbose; … … 80 78 print "command to process this skycell\n"; 81 79 print "$command\n"; 80 81 exit 0 if $pretend; 82 82 83 83 if ($update) { … … 95 95 } 96 96 97 print "command to process this skycell\n";98 print "$command\n";99 100 exit 0 if $pretend;101 97 102 98 exit system $command; … … 133 129 =head1 SYNOPSIS 134 130 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>] 136 132 137 133 Query the database for the results of a diff skycell and rerun the processing, optionally reverting a faulted … … 161 157 Optional. 162 158 163 =item * -- redirect-output159 =item * --no-redirect-output 164 160 165 Send the output of the command to the logfile. (This is the default if --update is supplied). 161 Don't redirect script output to logfile. 166 162 Optional. 167 163
Note:
See TracChangeset
for help on using the changeset viewer.
