#! /bin/csh # Get the location of the script # Use a dedicated variable because variable modifiers (:h) are not allowed on $0 set COMMAND_NAME = ( $0 ) pushd "$COMMAND_NAME:h" > /dev/null # Use pwd instead of dirname to avoid .. and . in path; we need normalized path to parse the instance name and id set SCRIPT_LOCATION = ( `pwd` ) popd > /dev/null set INSTANCE_NUMBER = ( `echo $SCRIPT_LOCATION | sed -e 's^.*\([0-9][0-9]\)/j2ee/cluster/bootstrap/scripts^\1^'` ) $SCRIPT_LOCATION/launcher.csh datcol $SCRIPT_LOCATION/datcol.jstart -nr $INSTANCE_NUMBER -function CreateSnapshot $* # This newline must remain