#!/bin/sh

if test ! -f $INSTALL_EMPRESSPATH
then
	cat >&2 <<EOM
Your system has not been set up to run Empress-in-one.
You properly did not install Empress.
EOM
	exit 1
fi

EMPRESSPATH=`cat $INSTALL_EMPRESSPATH`
export EMPRESSPATH

log=$EMPRESSPATH/rdbms/spool/log/empin1.log.$$

# need to change directory because the parent process may exit and the
# temp directory will be removed.

cd $HOME
exec $EMPRESSPATH/bin/empress > $log 2>&1
