Hi,
I'm new to UNIX shell scripting (ksh), and I'm not making a lot of progress with my first script.
I wrote a small application that connects to our databse. Rather than having different users entering the class path over and over I'm trying to write a Korn script to do it automatically. I've attached the KSH code that I have so far. If you could point out if I'm missing a key command or if my syntax is off I'd appreciate it.
Code:
loggedinuser="$(whoami)"
CFG_DIR="`dirname $0`"
EXIT_STATUS=${SUCCESS}
export PATH=/opt/java1.3/bin:$PATH
OLDDIR="`pwd`"
cd $PLCS_ROOT_DIR
java -classpath example_path/sdfsdfJar.jar: example_path/example_path/Jar2.jar
EXIT_STATUS=$?
cd $OLDDIR
echo $EXIT_STATUS
exit $EXIT_STATUS