Index: /trunk/pstamp/scripts/pstamp_results_file.pl
===================================================================
--- /trunk/pstamp/scripts/pstamp_results_file.pl	(revision 18985)
+++ /trunk/pstamp/scripts/pstamp_results_file.pl	(revision 18986)
@@ -90,7 +90,6 @@
         { name => 'CLASS_ID',   type => '16A', writetype => TSTRING },    
 
-
         # output parameters
-        { name => 'STAMP_NAME', type => '16A', writetype => TSTRING },  
+#        { name => 'STAMP_NAME', type => '16A', writetype => TSTRING },  
         { name => 'OPTION_MASK',type => 'J', writetype   => TULONG },     
 
Index: /trunk/pstamp/scripts/pstamp_runcommand.sh
===================================================================
--- /trunk/pstamp/scripts/pstamp_runcommand.sh	(revision 18985)
+++ /trunk/pstamp/scripts/pstamp_runcommand.sh	(revision 18986)
@@ -8,21 +8,22 @@
 # This script is used by cgi or php scripts.
 
-if [[ $# == 0 ]] ;then
-    echo "usage $0 command" >&2
+# echo $# args are: $*
+
+if [[ $# -lt 4 ]] ;then
+    echo "usage $0 PSCONFDIR PSCONFIG WORKDIR command" >&2
     #  EINVAL = 22
     exit 22
 fi
 
-#### BEGIN LOCAL_CONFIGURATION
+export PSCONFDIR=$1
+shift
 
-# These variables need to be customized for a particular installation
-# XXX: why not pass these on on the command line or in the environment?
-export PSCONFDIR=/home/panstarrs/bills/psconfig
+PSCONFIG=$1
+shift
 
-WORK_DIR=/data/ipp004.0/pstamp-work
+WORKDIR=$1
+shift
+export HOME=$WORKDIR
 
-#### END LOCAL_CONFIGURATION
-
-export HOME=$WORK_DIR
 
 cd $WORK_DIR
@@ -37,5 +38,5 @@
 ###
 
-source $PSCONFDIR/psconfig.bash debug
+source $PSCONFDIR/psconfig.bash $PSCONFIG
 status=$?
 if [[ $status != 0 ]] ; then
Index: /trunk/pstamp/scripts/pstamp_webrequest.pl
===================================================================
--- /trunk/pstamp/scripts/pstamp_webrequest.pl	(revision 18985)
+++ /trunk/pstamp/scripts/pstamp_webrequest.pl	(revision 18986)
@@ -83,5 +83,5 @@
 {
     my $command = "$pstamprequest -req_name $request_name -project $project $request_file @ARGV";
-    $command .= " -$job_type" if $job_type;     # default job_type is stamp
+    $command .= " -$job_type" if $job_type;     # default job_type is pstamp
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
@@ -98,5 +98,7 @@
     ### In list mode just parse the file print the output and we're done
     ###
-    my $command = "$pstampparse --mode list_uri --file $request_file --dbname $dbname";
+    my $command = "$pstampparse --mode list_uri --file $request_file";
+    $command .= " --dbname $dbname" if $dbname;
+    $command .= " --verbose" if $verbose;
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => $verbose);
