If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > KSH script to start my Java application.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-05, 17:00
N*V N*V is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
Question KSH script to start my Java application.

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On