Hi, This is what my script file looks like,
PRG="$0" while [ -h "$PRG" ]; do echo $PRG ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '.*/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`/"$link" fi done # Get standard environment variables PRGDIR=`dirname "$PRG"` # ----- Process the input command ---------------------------------------------- CMD="" CMD="$CMD -Desb.sample=cloud -Dcarbon.registry.root=../cloud/esb-samples/scloud" #sh $PRGDIR/wso2server.sh$CMD sh ./wso2server.sh echo "The script exited with status $?" [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` echo $CARBON_HOME sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p admin cp $CARBON_HOME/repository/cloud/profile1 _system/config/bamServerProfiles/ cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/ sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1 sh ./checkin-client.sh add _system/governance/oidlist.txt sh ./checkin-client.sh ci -u admin -p admin On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva <saj...@wso2.com> wrote: > Hi, > > I want to start the esb server from a script file and execute some > check-in client commands from the same script, but once wso2server.sh is > executed in the script it never return to the next line where other script > commands are placed. Therefore my other script commands are not executed. > > Any suggestions on why it is happening? > > Thank you, > Sajini. > -- > Sajini De SIlva > Software Engineer; WSO2 Inc.; http://wso2.com , > Email: saj...@wso2.com > Blog: http://sajinid.blogspot.com/ > Git hub profile: https://github.com/sajinidesilva > > -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev