Index: trunk/ippScripts/scripts/ipp_serial_inject_mosaic.pl
===================================================================
--- trunk/ippScripts/scripts/ipp_serial_inject_mosaic.pl	(revision 14135)
+++ trunk/ippScripts/scripts/ipp_serial_inject_mosaic.pl	(revision 14136)
@@ -88,11 +88,6 @@
 
 foreach my $exp_name ( @ARGV ) {
-    my $command = "$pxinject -newExp";
-    " -exp_name $exp_name";
-    " -inst $camera";
-    " -telescope $telescope";
-    " -workdir $workdir";
-    " -dbname $dbname" if defined $dbname;
-    " -imfiles " . (scalar @classes or 1) ; # Command to run
+    my $command = "$pxinject -newExp -tmp_exp_name $exp_name -tmp_inst $camera -tmp_telescope $telescope -workdir $workdir"; # Command to run
+    $command .= " -dbname $dbname" if defined $dbname;
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
@@ -112,11 +107,6 @@
 
 	$filename = $ipprc->convert_filename_relative( $filename );
-	my $command = "$pxinject -newImfile";
-	" -exp_id $exp_id";
-	" -exp_name $exp_name";
-	" -class chip";
-	" -class_id $class_id";
-	" -uri $filename";
-	" -dbname $dbname" if defined ($dbname); # Command to run
+	my $command = "$pxinject -newImfile -exp_id $exp_id -tmp_class_id $class_id -uri $filename"; # Command to run
+	$command .= " -dbname $dbname" if defined ($dbname);
 
 	my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
@@ -133,5 +123,6 @@
 
 	$filename = $ipprc->convert_filename_relative( $filename );
-	my $command = "$pxinject -newImfile -exp_id $exp_id -exp_name $exp_name -class fpa -class_id fpa -dbname $dbname -uri $filename"; # Command to run
+	my $command = "$pxinject -newImfile -exp_id $exp_id -tmp_class_id fpa -uri $filename"; # Command to run
+	$command .= " -dbname $dbname" if defined ($dbname);
 	my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
 	    run( command => $command, verbose => 1 );
