Index: trunk/pstamp/scripts/pstamp_dorequest.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_dorequest.pl	(revision 16675)
+++ trunk/pstamp/scripts/pstamp_dorequest.pl	(revision 16764)
@@ -98,5 +98,5 @@
         die("Unable to perform $command: $error_code");
     }
-    ### print "@$stdout_buf\n";
+    ### print @$stdout_buf;
 }
 
Index: trunk/pstamp/scripts/pstamp_parser_run.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_parser_run.pl	(revision 16675)
+++ trunk/pstamp/scripts/pstamp_parser_run.pl	(revision 16764)
@@ -42,5 +42,5 @@
 #my $outputDataStoreRoot = "/var/www/html/ds/dsroot";
 
-my $outputDataStoreRoot = metadataLookupStr($ipprc->{_ipprc}, 'PSTAMP_DATA_STORE_ROOT');
+my $outputDataStoreRoot = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_DATA_STORE_ROOT');
 exit ($PS_EXIT_CONFIG_ERROR) unless defined $outputDataStoreRoot;
 my $defaultOutputRoot = $outputDataStoreRoot;
@@ -49,5 +49,5 @@
 #my $inputWorkdir = "/export/data1/bills/pstamp/work/$request_id";
 
-my $inputWorkdir = metadataLookupStr($ipprc->{_ipprc}, 'PSTAMP_WORKDIR');
+my $inputWorkdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR');
 exit ($PS_EXIT_CONFIG_ERROR) unless defined $inputWorkdir;
 $inputWorkdir .= "/$request_id";
Index: trunk/pstamp/scripts/pstamp_runcommand.sh
===================================================================
--- trunk/pstamp/scripts/pstamp_runcommand.sh	(revision 16675)
+++ trunk/pstamp/scripts/pstamp_runcommand.sh	(revision 16764)
@@ -17,9 +17,9 @@
 
 # These variables need to be customized for a particular installation
-# XXX: why not pass these on on the command line ?
+# XXX: why not pass these on on the command line or in the environment?
 export PSCONFDIR=/export/data0/bills/psconfig
 
 WORK_DIR=/export/data1/bills/pstamp/work
-CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts
+CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts:/export/data0/bills/src/ipp/DataStoreServer/web/cgi
 
 #### END LOCAL_CONFIGURATION
@@ -50,4 +50,6 @@
 ###
 PATH=${CMD_DIR}:${PATH}
+#echo path: $PATH >&2
+#echo command: $* >&2
 
 ## make sure we are able to run the desired command
Index: trunk/pstamp/scripts/pstamp_webrequest.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_webrequest.pl	(revision 16675)
+++ trunk/pstamp/scripts/pstamp_webrequest.pl	(revision 16764)
@@ -69,5 +69,5 @@
         run(command => $command, verbose => $verbosity);
     unless ($success) {
-        print STDERR "@$stderr_buf\n";
+        print STDERR @$stderr_buf;
         die("Unable to perform pstamprequest: $error_code");
     }
@@ -87,5 +87,5 @@
     }
     ### print "Matching Images:\n";
-    print "@$stdout_buf";
+    print @$stdout_buf;
     exit 0;
 }
@@ -99,5 +99,5 @@
         run(command => $command, verbose => $verbosity);
     unless ($success) {
-        print STDERR "@$stderr_buf\n";
+        print STDERR @$stderr_buf;
         die("Unable to perform pstamptool -addreq: $error_code");
     }
@@ -111,5 +111,5 @@
         run(command => $command, verbose => $verbosity);
     unless ($success) {
-        print STDERR "@$stderr_buf\n";
+        print STDERR @$stderr_buf;
         die("Unable to perform pstamparser_run -addreq: $error_code");
     }
