troubleshooting Question

unix scripting

Avatar of nicky s
nicky sFlag for United States of America asked on
Shell Scripting
3 Comments1 Solution546 ViewsLast Modified:
can some one please correct the script im not able to execute
#! /bin/bash

if [ $# != 2 ]
then
echo " Usage1 : ./bouncescript1.sh (start|stop) "
exit 1
fi

if [ ($1 == "stop") || ($1 == "start") ]
then
if [ $1 == "stop" ]
then
cd /opt/jboss/jboss-4.3.0/bin
./execute1.sh;
cd /opt/jboss/jboss-4.0.2/bin
./execute2.shfi

if [ $1 == "start" ]
then
./execute1.sh;


cd /opt/jboss/jboss-4.0.2/bin
./execute2.sh
fi

else
echo " Usage2 : ./bouncescript1.sh (start|stop) "
fi

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros