Linux Export scripts get session halts

I have SUSE Linux (9) server with Oracle 9i database so from time to time I have to run the script to export data to another server but today I can't do that as it is acepting the order (./gks.sh) but the session gets halt every time I run the script.
Please advice as the script is below:

#      Sets file creation permissions to 775
umask 002

#      Sets the TETRAHOME directory
TETRAHOME=/sage/v5.5; export TETRAHOME

#      Sets new or old style menus
NEWMENU=Y; export NEWMENU

#      Sets print discard option
DISCARD=Y; export DISCARD
SERVICE=1; export SERVICE

#      Sets the binary search path
PATH=/sage/v5.5/bin:$PATH; export PATH

#      Sets the terminal definition path for CS/3
TERMDEF=$TETRAHOME/termdef; export TERMDEF
TERMID=compaq;export TERMID

# Sets location of the random data file for XML
RANDFILE=$TETRAHOME/dblib/random; export RANDFILE

#      Sets the shared object library path
LD_LIBRARY_PATH=/sage/v5.5/bin:/sage/v5.5/dblib; export LD_LIBRARY_PATH

#      Sets the ANSI data dictionary
ANSISQL=YES; export ANSISQL

#      Sets DBMODE, 0 for isam, 1 for oracle/online
DBMODE=1; export DBMODE
# Oracle specific variables
ORACLE_HOME=/opt/oracle/product/9ir2;export ORACLE_HOME
ORACLE_SID=sagedb;export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin;export PATH


#Formserver variables
FORMACCESS=FLATPRIORITY;export FORMACCESS
CSSERVERMODE=SERVERPRIORITY; export CSSERVERMODE
CSFFHOST=10.35.1.21; export CSFFHOST
CSFFPORT=20005; export CSFFPORT
CSFORMS=/sage/v5.5/FormServer/CSForms; export CSFORMS

LOGNAME=cmp;export LOGNAME
unset WDPATH
ccmenu -n runrw Q_CUST_CREATE >/dev/null
ccmenu -n runrw Q_CUST_REG >/dev/null
ccmenu -n runrw Q_DEP_CREATE >/dev/null
ccmenu -n runrw Q_PARTS_CREATE >/dev/null
ccmenu -n runrw Q_GKS_SALES_T1 >/dev/null
ccmenu -n runrw Q_GKS_SALES_T2 >/dev/null
ccmenu -n runrw Q_GKS_SALES_T3 >/dev/null
ccmenu -n runrw Q_GKS_SALES_T4 >/dev/null
ccmenu -n runrw Q_GKS_SALES >/dev/null
WDPATH=/sage/v5.5/fenlive/;export WDPATH
WDNAME=sys;export WDNAME
CHDBNAME=sagelive.sagedb;export CHDBNAME
CHDBUSER=sageuser;export CHDBUSER
CHDBUAUTH=sag3acc3ss;export CHDBUAUTH
cd $WDPATH
Mostafa_ElSadekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

elf_binCommented:
I don't really understand what you mean by "the session gets halt".  Do you mean the script exits with an error?  Do you mean you can not login as the user that you normally login as to run the script?  Do you means the script runs forever and never stops?

Please explain.

Thanks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mostafa_ElSadekAuthor Commented:
I done it thanks
0
Mostafa_ElSadekAuthor Commented:
Wasn't an answer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.