IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

pass along verbose if provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.