473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Any Errors visible?

Hi all,

I'm wondering if anyone can spot some errors in this script.

I'm only really interested in Syntax errors (or logical ones if they are blatant!)

I have not run this script yet, the Linux machine is not yet available.

I'm looking for a heads up on obvious syntax errors..

Thanks in Advance,
Patrick


You can assume that the VARIABLES MOM_HOME and JAVA_HOME are well defined.



-----------------------------------------------------------------------------------------
#!/bin/sh -vx
################################################## #####
#
################################################## #####


# Verify if MOM_HOME is well defined

if [ -f $MOM_HOME/tests/tests.jar ]
then

# Verify if JAVA_HOME is well defined

if [ -f $JAVA_HOME/bin/java ]
then

export HOST=10.1.1.50

export CLASSPATH=$MOM_HOME/joram-mom.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/JCup.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/commons-beanutils-bean-collections.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/commons-beanutils-core.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/commons-dbcp-1.2.1.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/commons-logging-1.1.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/commons-pool-1.3.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/commons.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/jms.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/joram-client.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/joram-shared.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/log4j-1.2.14.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/mindprod-base64.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/mom-1.0.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/mysql-connector-java-5.0.4-bin.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/ow_monolog.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/service_interfaces.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/service_shared_impl.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-beans.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-context.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-core.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-dao.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-jdbc.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-jmx.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/spring-web.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/tests/tests.jar
export CLASSPATH=$CLASSPATH;$MOM_HOME/tests/junit-4.1.jar

$JAVA_HOME/bin/java -classpath $CLASSPATH com.babelnetworks.service.messaging.impl.Util $HOST root root intTestCleanup 0
$JAVA_HOME/bin/java -classpath $CLASSPATH com.babelnetworks.service.messaging.impl.Util $HOST root root intTestSetup 0
$JAVA_HOME/bin/java -classpath $CLASSPATH com.babelnetworks.service.messaging.impl.Util $HOST root root info

else

echo "The JAVA_HOME environment variable is not defined correctly"

fi

else

echo "The MOM_HOME environment variable is not defined correctly"

fi


#END
--------------------------------------------------------------------------
Aug 14 '07 #1
0 1117

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dirk Försterling | last post by:
Hi, sorry for reposting, but it seems my message just hit nothing but air. If I posted to the wrong list or did something else wrong with the message, please let me know. I really want to...
3
by: Jim in Arizona | last post by:
I'm going insane! I don't know if it's just that the .net 2.0 framework is buggy or if it really is my code. This is pretty hard to explain since I can't even begin to nail down why this is...
13
by: Dr. Zharkov | last post by:
Hello. A problem in the following. In VB .NET 2003 we create the project and in file Form1.vb the following code is written down: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
3
by: clintonb | last post by:
Some programmers, and even Microsoft documents, say you should only throw exceptions for exceptional situations. So how are others handling all the other unexceptional errors? How are you...
9
by: guy | last post by:
VB2005 ASP.NET the application i have been working on for some time has just started to give me a 'Build failed' but it does not display the errors window. if i display the errors window manually...
7
by: imatts | last post by:
Hi can anyone help with this little problem. I have a simple script to swap between two divs on a page. It works perfectly in Firefox & Safari & Opera. It fails in IE 6 giving Object Required error...
1
by: dhyder | last post by:
OK, like the title says my error is Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. I have looked into this a lot, but have not...
3
by: hardieca | last post by:
Hi, I've created an n-tier app where validation rules reside in the business layer. When a webform is saved, a business object examines its state, and if some property is invalid, throws a...
3
by: tshad | last post by:
I have a file that I converted from VB.Net to C# that works fine in VB.Net when I compile but not in C# using the same libraries. The error I am getting is: PageInit.cs(9,7): error CS0138: A...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.