Index: trunk/ippScripts/scripts/ipp_serial_chip.pl
===================================================================
--- trunk/ippScripts/scripts/ipp_serial_chip.pl	(revision 15480)
+++ trunk/ippScripts/scripts/ipp_serial_chip.pl	(revision 15481)
@@ -13,5 +13,4 @@
 
 my ($dbname,			# Database name to use
-    $workdir,			# Working directory
     $no_op,			# No operations?
     $no_update,			# No updating?
@@ -19,5 +18,4 @@
 GetOptions(
 	   'dbname|d=s' => \$dbname,
-	   'workdir|w=s' => \$workdir,
 	   'no-op' => \$no_op,
 	   'no-update' => \$no_update,
@@ -66,4 +64,5 @@
 	    my $uri = $item->{uri};
 	    my $reduction = $item->{reduction};
+	    my $workdir = $item->{workdir};
 	    
 	    my $command = "$chip --chip_id $chip_id --exp_id $exp_id --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera";
@@ -71,5 +70,5 @@
 	    $command .= " --no-op" if defined $no_op;
 	    $command .= " --no-update" if defined $no_update;
-	    $command .= " --workdir $workdir" if defined $workdir;
+	    $command .= " --workdir $workdir" if defined $workdir and $workdir ne "NULL";
 	    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
 		run( command => $command, verbose => 1 );
