IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18986


Ignore:
Timestamp:
Aug 8, 2008, 3:48:28 PM (18 years ago)
Author:
bills
Message:

pass along verbose if provided

Location:
trunk/pstamp/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_results_file.pl

    r18741 r18986  
    9090        { name => 'CLASS_ID',   type => '16A', writetype => TSTRING },   
    9191
    92 
    9392        # output parameters
    94         { name => 'STAMP_NAME', type => '16A', writetype => TSTRING }, 
     93#        { name => 'STAMP_NAME', type => '16A', writetype => TSTRING }, 
    9594        { name => 'OPTION_MASK',type => 'J', writetype   => TULONG },     
    9695
  • trunk/pstamp/scripts/pstamp_runcommand.sh

    r18587 r18986  
    88# This script is used by cgi or php scripts.
    99
    10 if [[ $# == 0 ]] ;then
    11     echo "usage $0 command" >&2
     10# echo $# args are: $*
     11
     12if [[ $# -lt 4 ]] ;then
     13    echo "usage $0 PSCONFDIR PSCONFIG WORKDIR command" >&2
    1214    #  EINVAL = 22
    1315    exit 22
    1416fi
    1517
    16 #### BEGIN LOCAL_CONFIGURATION
     18export PSCONFDIR=$1
     19shift
    1720
    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
     21PSCONFIG=$1
     22shift
    2123
    22 WORK_DIR=/data/ipp004.0/pstamp-work
     24WORKDIR=$1
     25shift
     26export HOME=$WORKDIR
    2327
    24 #### END LOCAL_CONFIGURATION
    25 
    26 export HOME=$WORK_DIR
    2728
    2829cd $WORK_DIR
     
    3738###
    3839
    39 source $PSCONFDIR/psconfig.bash debug
     40source $PSCONFDIR/psconfig.bash $PSCONFIG
    4041status=$?
    4142if [[ $status != 0 ]] ; then
  • trunk/pstamp/scripts/pstamp_webrequest.pl

    r18547 r18986  
    8383{
    8484    my $command = "$pstamprequest -req_name $request_name -project $project $request_file @ARGV";
    85     $command .= " -$job_type" if $job_type;     # default job_type is stamp
     85    $command .= " -$job_type" if $job_type;     # default job_type is pstamp
    8686
    8787    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    9898    ### In list mode just parse the file print the output and we're done
    9999    ###
    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;
    101103    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    102104        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.