using 4JS & cron

[email protected]
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <OFD2113899.AAC4FDC0-ONC1257035.0022A1F8-C1257035.0029DF1B@kofu.de>
I have a problem with a program running as cron job.

We have a development and an application server. Configuration se bellow. 
I have a program that should run as cron-job. On the development server 
ervery thing works fine, but on the application server I have a system 
message from the cron: "segmentation fault"
You can see the script files below. When I start the script on the 
application server from the shell then there is no error.

Thanks in advance for any help.


configuration development server:
OS: Red Hat 7.2
dbaccess -V: DB-Access Version 9.30.UC3 
fglrun -V
Four J's Dynamic Virtual Machine Version 3.50.01.05
Built Jul 12 2002 10:42:14
(c) 1989-2002 Four J's Development Tools Ltd
Language support library: INFORMIX GLS
Database front end : INFORMIX-ESQL VERSION 9.14(a)

configuration application server:

OS: red Hat 8.0
dbaccess -V: DB-Access Version 9.40.UC4W2 
fglrun -V
Four J's Dynamic Virtual Machine Version 3.50.01.05
Built Jul 12 2002 10:42:14
(c) 1989-2002 Four J's Development Tools Ltd



###############################################script from development 
server (everything works fine !)

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs

export FGLSERVER=$TERM
TERM=vt220
PATH=$PATH:$HOME:.
export PATH

unset USERNAME
export INFORMIXDIR=/opt/informix
export INFORMIXSERVER=on_kofu
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
export ONCONFIG=onconfig
export FGLDIR=/opt/fgl2c.350rt
. $FGLDIR/envcomp
export FGLGUI=0

export PPATH=/home1/fibu
export FBPATH=/home1/fibu
export KRPATH=/home1/kosten
export ABPATH=/home1/anbu
export WWPATH=/home1/wawi
export BESTMIX=/home1/adifo
export MENUE=/home1/menue
export DBPATH=$FBPATH:$KRPATH:$ABPATH:$WWPATH:$MENUE


export DB_LOCALE=de_de.cp1252
export SERVER_LOCALE=de_de.cp1252
export CLIENT_LOCALE=de_de.cp1252
export DBNLS=2
export LANG=de_DE
export DBDATE=DMY4.
export DBMONEY=,

umask 0000
export RUNNER=fglrun
export TTY=`tty`
export a="$LOGNAME $TTY 0 0 0"
export BS=UNIX

PATH=FFGLDIR/bin:$INFORMIXDIR/bin:$PATH
export PATH

cd $WWPATH

fglrun /home1/wawi/sehm05 1 $a

date >> /home/hmcron/lscron.txt

###############################################script from application 
server (segmentation fault !)
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

# TERM=vt220
export TERMCAP=/etc/termcap

export FGLSERVER=$TERM
PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
export INFORMIXDIR=/opt/informix
export INFORMIXSERVER=on_kofu
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
export LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql
export ONCONFIG=onconfig.kofu
export DB_LOCALE=de_DE.cp1252
export SERVER_LOCALE=de_DE.cp1252
export CLIENT_LOCALE=de_DE.cp1252
export DBNLS=2
export DBMONEY=,
export DBDATE=DMY4.

export PATH=$PATH:.

export PPATH=/programme/fibu
export FBPATH=/programme/fibu
export KRPATH=/programme/kore
export ABPATH=/programme/anbu
export WWPATH=/programme/wawi
export BESTMIX=/programme/adifo
export MENUE=/programme/menue
export DBPATH=$FBPATH:$KRPATH:$ABPATH:$WWPATH:$MENUE
export RUNNER=fglrun
export TTY=`tty`

export LOGNAME=hmcron

# export a="$LOGNAME"
# export a="$LOGNAME $TTY 0 0 0"
export BS=UNIX

export FGLDIR=/opt/fgl2c.350
. $FGLDIR/envcomp
export FGLGUI=0

PATH=$FGLDIR/bin:$INFORMIXDIR/bin:$PATH
LANG=de_DE
export PATH

cd $WWPATH

date >> /home/hmcron/batch/status.txt

 fglrun sehm05 1 $a
###################################################################################

Can anybody help me ??


Stefan Serwe

KOFU Tiernahrung Kottmann GmbH
EDV-Abteilung
Danziger Strasse 3-5
41460 Neuss
Tel.: +49 2131 181 202
Fax: +49 2131 181 204
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.