why shell script fails

hi ..
I have automate some process on unix through sehll script .
but i don't know there is some problem in scripts, some time shell script works and some time it fails. so my query is that "Why shell script fails some times?"

thanks

post your script...

myscript is

#!/bin/bash
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/ ./startManager.sh
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/ .startNode.sh
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/ ./startServer.sh server1
/opt/IBM/HTTPServer/bin/ ./apachectl start

After creating this script i have automate this script by making entery in /etc/init.d/script.sh and then i have created link in etc/rc3.d/ directory "S23script"

Now it runs on system startup automatically . but some time it does't work . why??

well, in my experience, WL sucks moneky b@lls
you probably want to check the WL server logs while you run that command, and see where it fails

the script you posted shouldnt fail "some times" (considering that noone is moving the WL scripts round to make a prank)

Timing? If for example the manager process backgrounds and has to complete initialisation before the services start you could try a short sleep between each command line.
If each process produces a log, check the content of each log and any timestamps to get a better idea of how to sequence the processes.