Index: trunk/tools/rundiffskycell.pl
===================================================================
--- trunk/tools/rundiffskycell.pl	(revision 33064)
+++ trunk/tools/rundiffskycell.pl	(revision 33065)
@@ -25,5 +25,5 @@
 
 my $dbname = "gpc1";
-my ($diff_id, $skycell_id, $threads, $update, $redirect);
+my ($diff_id, $skycell_id, $threads, $update, $no_redirect);
 my $zaplog;
 
@@ -32,5 +32,5 @@
     'skycell_id=s'      => \$skycell_id,
     'threads=i'         => \$threads,
-    'redirect-output'   => \$redirect,
+    'no-redirect-output'  => \$no_redirect,
     'zaplog'            => \$zaplog,
     'update'            => \$update,
@@ -44,6 +44,4 @@
     if !$diff_id or !$skycell_id;
 
-# if we're asked to update redirect the output
-$redirect = 1 if $update;
 
 my $ipprc =  PS::IPP::Config->new();
@@ -69,5 +67,5 @@
 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";
 
-$command .= " --redirect-output" if $redirect;
+$command .= " --redirect-output" unless $no_redirect;
 $command .= " --no-update" unless $update;
 $command .= " --verbose" unless $no_verbose;
@@ -80,4 +78,6 @@
 print "command to process this skycell\n";
 print "$command\n";
+
+exit 0 if $pretend;
 
 if ($update) {
@@ -95,8 +95,4 @@
 }
 
-print "command to process this skycell\n";
-print "$command\n";
-
-exit 0 if $pretend;
 
 exit system $command;
@@ -133,5 +129,5 @@
 =head1 SYNOPSIS
     
-    perl rundiffskyfile.pl --diff_id <diff_id> --skycell_id <skycell_id> [--threads <num_threads>] [--update] [--redirect-output] [--pretend] [--dbname <dbname>]
+    perl rundiffskyfile.pl --diff_id <diff_id> --skycell_id <skycell_id> [--threads <num_threads>] [--update] [--no-redirect-output] [--pretend] [--dbname <dbname>]
 
 Query the database for the results of a diff skycell and rerun the processing, optionally reverting a faulted
@@ -161,7 +157,7 @@
 Optional.
 
-=item *  --redirect-output
+=item *  --no-redirect-output
 
-Send the output of the command to the logfile. (This is the default if --update is supplied).
+Don't redirect script output to logfile. 
 Optional.
 
