Index: trunk/pstamp/scripts/pstampparse.pl
===================================================================
--- trunk/pstamp/scripts/pstampparse.pl	(revision 19162)
+++ trunk/pstamp/scripts/pstampparse.pl	(revision 19220)
@@ -96,5 +96,5 @@
 
 if ($req_id) {
-    my $command = "$pstamptool -processedreq -req_id $req_id  -name $req_name";
+    my $command = "$pstamptool -updatereq -req_id $req_id  -name $req_name";
     $command .= " -outProduct $product";
     $command .= " -dbname $dbname" if $dbname;
@@ -227,4 +227,5 @@
         foreach my $image (@$images) {
             my $uri = $image->{image};
+            my $exp_id = $image->{exp_id};
 
             $job_num++;
@@ -256,6 +257,9 @@
             # and if not, queue a regeneration job and set the job state appropriately.
 
+            my $state = "run";
+
             my $command = "$pstamptool -addjob -req_id $req_id -job_type $job_type"
-                . " -uri $uri -outputBase $output_base -args '$args' -rownum $rownum";
+                . " -uri $uri -outputBase $output_base -args '$args' -rownum $rownum"
+                . " -state $state -exp_id $exp_id";
             $command .= " -dbname $dbname" if $dbname;
 
