Index: trunk/pstamp/scripts/pstamp_job_run.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_job_run.pl	(revision 24831)
+++ trunk/pstamp/scripts/pstamp_job_run.pl	(revision 24944)
@@ -118,10 +118,18 @@
 my $uri = $psjob->{uri};
 my $outputBase = $psjob->{outputBase};
-my $argString = $psjob->{args};
 my $jobType = $psjob->{jobType};
+#my $argString = $psjob->{args};
 
 my $jobStatus;
 if ($jobType eq "stamp") {
-    my $command = "$ppstamp -file $uri $outputBase $argString";
+    open ARGSLIST, "<$uri" or die "failed to open argslist file $uri";
+    my $argString = <ARGSLIST>;
+    close ARGSLIST;
+    chomp $argString;
+
+    # XXX: should we do any other sanity checking?
+    die "arglist file $uri is empty" if !$argString;
+
+    my $command = "$ppstamp $outputBase $argString";
     $command .= " -dbname $dbname" if $dbname;
     $command .= " -dbserver $dbserver" if $dbserver;
