Changeset 18986 for trunk/pstamp/scripts/pstamp_runcommand.sh
- Timestamp:
- Aug 8, 2008, 3:48:28 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_runcommand.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.
