Changeset 16764 for trunk/pstamp/scripts
- Timestamp:
- Feb 29, 2008, 2:42:19 PM (18 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 4 edited
-
pstamp_dorequest.pl (modified) (1 diff)
-
pstamp_parser_run.pl (modified) (2 diffs)
-
pstamp_runcommand.sh (modified) (2 diffs)
-
pstamp_webrequest.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_dorequest.pl
r16591 r16764 98 98 die("Unable to perform $command: $error_code"); 99 99 } 100 ### print "@$stdout_buf\n";100 ### print @$stdout_buf; 101 101 } 102 102 -
trunk/pstamp/scripts/pstamp_parser_run.pl
r16675 r16764 42 42 #my $outputDataStoreRoot = "/var/www/html/ds/dsroot"; 43 43 44 my $outputDataStoreRoot = metadataLookupStr($ipprc->{_ ipprc}, 'PSTAMP_DATA_STORE_ROOT');44 my $outputDataStoreRoot = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_DATA_STORE_ROOT'); 45 45 exit ($PS_EXIT_CONFIG_ERROR) unless defined $outputDataStoreRoot; 46 46 my $defaultOutputRoot = $outputDataStoreRoot; … … 49 49 #my $inputWorkdir = "/export/data1/bills/pstamp/work/$request_id"; 50 50 51 my $inputWorkdir = metadataLookupStr($ipprc->{_ ipprc}, 'PSTAMP_WORKDIR');51 my $inputWorkdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR'); 52 52 exit ($PS_EXIT_CONFIG_ERROR) unless defined $inputWorkdir; 53 53 $inputWorkdir .= "/$request_id"; -
trunk/pstamp/scripts/pstamp_runcommand.sh
r16591 r16764 17 17 18 18 # These variables need to be customized for a particular installation 19 # XXX: why not pass these on on the command line ?19 # XXX: why not pass these on on the command line or in the environment? 20 20 export PSCONFDIR=/export/data0/bills/psconfig 21 21 22 22 WORK_DIR=/export/data1/bills/pstamp/work 23 CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts 23 CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts:/export/data0/bills/src/ipp/DataStoreServer/web/cgi 24 24 25 25 #### END LOCAL_CONFIGURATION … … 50 50 ### 51 51 PATH=${CMD_DIR}:${PATH} 52 #echo path: $PATH >&2 53 #echo command: $* >&2 52 54 53 55 ## make sure we are able to run the desired command -
trunk/pstamp/scripts/pstamp_webrequest.pl
r16359 r16764 69 69 run(command => $command, verbose => $verbosity); 70 70 unless ($success) { 71 print STDERR "@$stderr_buf\n";71 print STDERR @$stderr_buf; 72 72 die("Unable to perform pstamprequest: $error_code"); 73 73 } … … 87 87 } 88 88 ### print "Matching Images:\n"; 89 print "@$stdout_buf";89 print @$stdout_buf; 90 90 exit 0; 91 91 } … … 99 99 run(command => $command, verbose => $verbosity); 100 100 unless ($success) { 101 print STDERR "@$stderr_buf\n";101 print STDERR @$stderr_buf; 102 102 die("Unable to perform pstamptool -addreq: $error_code"); 103 103 } … … 111 111 run(command => $command, verbose => $verbosity); 112 112 unless ($success) { 113 print STDERR "@$stderr_buf\n";113 print STDERR @$stderr_buf; 114 114 die("Unable to perform pstamparser_run -addreq: $error_code"); 115 115 }
Note:
See TracChangeset
for help on using the changeset viewer.
