##############################################
#        Ambiente Informix Genero            #
##############################################

export INFORMIXDIR=/opt/informix
export FGLDIR=/usr/fgl2c
export FGLPROFILE=$FGLDIR/etc/fglprofile
export DBDATE=dmy4/
export DBMONEY=R$,
export DBEDIT=jstar
export PATH=$PATH:$INFORMIXDIR/bin:$FGLDIR/bin
export OS=Linux
export RUNNER=fglrun
export DBEDIT=jstar
unset LANG LC_CTYPE
export PATH=$PATH:/sisdia/dprtmp02
export TERM=vt100

### Problema com Four J's no RH Enterprise
Kernel=`uname -r | awk -F "." '{ print $1 $2 $3 }' | awk -F "-" '{ print $1 }'`
if [ ${Kernel} -lt 2610 ]; then
   export LD_ASSUME_KERNEL=2.4.1
fi

### Para Instalar o Informix no Four J's
export RPM_INSTALL_PREFIX=/opt/informix

## Necessaria para o RH-EL ES Versao 4
export INFORMIXSHMBASE=-1
export INFORMIXSERVER=ol_dprtmp02
export INSTANCIA=`echo $INFORMIXSERVER | cut -c 4-11`
export ONCONFIG=onconfig.ol_$INSTANCIA
cd /sisdia/dprtmp02/
/usr/bin/cls

# Ambiente de Compilacao
export FGLDIR=/usr/fgl2c
export FGLPROFILE=$FGLDIR/etc/fglprofile
export PATH=$PATH:$FGLDIR/bin
export RUNNER=fglrun
#------- INFORMIX environment file
SHELL=/bin/bash
export SHELL
#------- INFORMIX installation directory
export FGLDIR=/usr/fgl2c
export FGLDIR
#------- Informix installation directory
INFORMIXDIR=/opt/informix
export INFORMIXDIR
#------- Upgrade the LD_LIBRARY_PATH
LD_LIBRARY_PATH="/opt/informix/lib:/opt/informix/lib/c++:/opt/informix/lib/cli:/opt/informix/lib/dmi:/opt/informix/lib/esql:/opt/informix/lib/tools:${LD_LIBRARY_PATH=}"
export LD_LIBRARY_PATH
#------- Upgrade the path
PATH=$INFORMIXDIR/bin:$FGLDIR/bin:$PATH
export PATH

unset FGLGUI

# Executando Progs
fglrun veic9901.42r
