Index: trunk/tools/runchipimfile.pl
===================================================================
--- trunk/tools/runchipimfile.pl	(revision 29809)
+++ trunk/tools/runchipimfile.pl	(revision 31941)
@@ -18,4 +18,6 @@
 my ($chip_id, $class_id, $threads, $update, $redirect, $pretend, $save_temps);
 
+my $zaplog;
+
 GetOptions(
     'chip_id=i'         => \$chip_id,
@@ -23,4 +25,5 @@
     'threads=i'         => \$threads,
     'pretend'           => \$pretend,
+    'zaplog'            => \$zaplog,
     'redirect-output'   => \$redirect,
     'update'            => \$update,
@@ -95,8 +98,21 @@
     }
 }
-print "command to process this skycell\n";
+print "command to process this chip\n";
 print "$command\n";
 
 exit 0 if $pretend;
+
+# XXX: implement this in chip_imfile.pl
+if ($zaplog) {
+    my $logfile = $path_base . ".$class_id.log";
+    my $cmd = "neb-mv $logfile $logfile.trash";
+    print "$cmd\n";
+    my $rc = system $cmd;
+    if ($rc) {
+        my $status = $rc >> 8;
+        print STDERR "neb-mv failed with $rc $status\n";
+        exit $status;
+    }
+}
 
 exit system $command;
