run a shelll script from another shell script in another directory
I am trying to stop weblogic using a shell script but it says
line 30: ./stopWeblogic.sh: No such file or directory
Here is the script
echo "weblogic stopped"
I added /admin/Oracle/Middleware/user_projects/domains/base_domain/bin to the path but still no luck. If I manually browse to the directory /admin/Oracle/Middleware/user_projects/domains/base_domain/bin using ssh and then run ./startWeblogic.sh it works fine.
Same thing If i try to run this commond from some other directory it does not work. But when I cd to this directory and issue ./stopWeblogic.sh it works.
/admin/Oracle/Middleware/user_projects/domains/base_domain/stopWeblogic.sh does not work from another directory
What am I doing wrong here?
Last edited by raulab; 02-22-2011 at 12:02 PM.