Index: branches/eam_branches/ps2-tc3-20130727/tools/rundiffskycell.pl
===================================================================
--- branches/eam_branches/ps2-tc3-20130727/tools/rundiffskycell.pl	(revision 35859)
+++ branches/eam_branches/ps2-tc3-20130727/tools/rundiffskycell.pl	(revision 36680)
@@ -25,5 +25,5 @@
 
 my $dbname = "gpc1";
-my ($diff_id, $skycell_id, $threads, $update, $no_redirect);
+my ($diff_id, $skycell_id, $threads, $update, $no_redirect, $outdir);
 my $zaplog;
 
@@ -33,4 +33,5 @@
     'threads=i'         => \$threads,
     'no-redirect-output'  => \$no_redirect,
+    'outdir=s'          => \$outdir,
     'zaplog'            => \$zaplog,
     'update'            => \$update,
@@ -64,4 +65,12 @@
 die "path_base not found\n" if !$path_base;
 die "diff_skyfile_id\n" if !$path_base;
+
+if ($outdir) {
+    if ($outdir eq '.') {
+        $outdir = $ENV{PWD};
+    }
+    my $base = basename($path_base);
+    $path_base = "$outdir/$base";
+}
 
 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";
