Changeset 18986
- Timestamp:
- Aug 8, 2008, 3:48:28 PM (18 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 3 edited
-
pstamp_results_file.pl (modified) (1 diff)
-
pstamp_runcommand.sh (modified) (2 diffs)
-
pstamp_webrequest.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_results_file.pl
r18741 r18986 90 90 { name => 'CLASS_ID', type => '16A', writetype => TSTRING }, 91 91 92 93 92 # output parameters 94 { name => 'STAMP_NAME', type => '16A', writetype => TSTRING },93 # { name => 'STAMP_NAME', type => '16A', writetype => TSTRING }, 95 94 { name => 'OPTION_MASK',type => 'J', writetype => TULONG }, 96 95 -
trunk/pstamp/scripts/pstamp_runcommand.sh
r18587 r18986 8 8 # This script is used by cgi or php scripts. 9 9 10 if [[ $# == 0 ]] ;then 11 echo "usage $0 command" >&2 10 # echo $# args are: $* 11 12 if [[ $# -lt 4 ]] ;then 13 echo "usage $0 PSCONFDIR PSCONFIG WORKDIR command" >&2 12 14 # EINVAL = 22 13 15 exit 22 14 16 fi 15 17 16 #### BEGIN LOCAL_CONFIGURATION 18 export PSCONFDIR=$1 19 shift 17 20 18 # These variables need to be customized for a particular installation 19 # XXX: why not pass these on on the command line or in the environment? 20 export PSCONFDIR=/home/panstarrs/bills/psconfig 21 PSCONFIG=$1 22 shift 21 23 22 WORK_DIR=/data/ipp004.0/pstamp-work 24 WORKDIR=$1 25 shift 26 export HOME=$WORKDIR 23 27 24 #### END LOCAL_CONFIGURATION25 26 export HOME=$WORK_DIR27 28 28 29 cd $WORK_DIR … … 37 38 ### 38 39 39 source $PSCONFDIR/psconfig.bash debug40 source $PSCONFDIR/psconfig.bash $PSCONFIG 40 41 status=$? 41 42 if [[ $status != 0 ]] ; then -
trunk/pstamp/scripts/pstamp_webrequest.pl
r18547 r18986 83 83 { 84 84 my $command = "$pstamprequest -req_name $request_name -project $project $request_file @ARGV"; 85 $command .= " -$job_type" if $job_type; # default job_type is stamp85 $command .= " -$job_type" if $job_type; # default job_type is pstamp 86 86 87 87 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 98 98 ### In list mode just parse the file print the output and we're done 99 99 ### 100 my $command = "$pstampparse --mode list_uri --file $request_file --dbname $dbname"; 100 my $command = "$pstampparse --mode list_uri --file $request_file"; 101 $command .= " --dbname $dbname" if $dbname; 102 $command .= " --verbose" if $verbose; 101 103 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 102 104 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
