31 lines
1,012 B
Text
31 lines
1,012 B
Text
|
#!/bin/ksh
|
||
|
# file name: run_UnitHydrographEditor
|
||
|
# Created: 10/07/2004
|
||
|
|
||
|
# This allows you to run this script from outside of ./bin
|
||
|
RUN_FROM_DIR=`dirname $0`
|
||
|
|
||
|
# set up SOME environment variables for WHFS applications
|
||
|
. $RUN_FROM_DIR/../../set_hydro_env
|
||
|
|
||
|
# set initial lid to the first command line argument passed into the script
|
||
|
LID_PASSED_IN=$1
|
||
|
|
||
|
export CLASSPATH=$CLASSPATH:$DB_DRIVER_PATH
|
||
|
# need to add a path to the jar file for this application
|
||
|
CLASSPATH=$CLASSPATH:$WHFS_BIN_DIR/SiteSpecific.jar
|
||
|
|
||
|
# Java bin directory
|
||
|
JBINDIR=$SYS_JAVA_DIR/bin
|
||
|
|
||
|
Dte=`date +%m%d%Y`
|
||
|
|
||
|
LOG_FILE=$SSHP_LOG_DIR/UnitHydrographEditor_$Dte.log
|
||
|
TMPLOGFILE=$SSHP_LOG_DIR/UnitHydrographEditor.tmp
|
||
|
|
||
|
tail -1200 $LOG_FILE > $TMPLOGFILE
|
||
|
mv $TMPLOGFILE $LOG_FILE
|
||
|
|
||
|
# set up an X Terminal window to write stdout and run the SiteSpecific
|
||
|
# application using java
|
||
|
xterm -T UnitHydrographEditor -iconic -n UnitHydrographEditor -e $JBINDIR/java ohd.hseb.sshp.window.UnitHydrographEditor $JDBCURL $LID_PASSED_IN $LOG_FILE >$LOG_FILE 2>>$LOG_FILE &
|