Index: trunk/tools/runwarpskycell.pl
===================================================================
--- trunk/tools/runwarpskycell.pl	(revision 33923)
+++ trunk/tools/runwarpskycell.pl	(revision 34590)
@@ -16,5 +16,5 @@
 
 my $dbname = "gpc1";
-my ($warp_id, $skycell_id, $threads, $update, $redirect, $pretend, $save_temps);
+my ($warp_id, $skycell_id, $threads, $update, $redirect, $pretend, $save_temps, $outdir);
 my $zaplog;
 
@@ -26,4 +26,5 @@
     'zaplog'            => \$zaplog,
     'redirect-output'   => \$redirect,
+    'outdir=s'          => \$outdir,
     'update'            => \$update,
     'dbname=s'          => \$dbname,
@@ -74,4 +75,10 @@
 } else {
     die "unexpected warpRun.state found: $state\n";
+}
+
+if ($outdir) {
+    my $base = basename($path_base);
+    $path_base = "$outdir/$base";
+    print "changing path_base to $path_base\n";
 }
 
