why shell script fails?

hi ,
i m trying to run a shell script automatically , some time it works fine but some time it fails , what could be the problem .
If anybody have an idea about this problem then reply .
Thanks in advacne

please post your script..

Thanks 4 ur reply ... My Script is

autoScript.sh

#!/bin/bash
/opt/IBM/HTTPServer/bin/apachectl start >/tmp/start.4.log 2>&1

this sounds familiar ...
hey, youa re the due that asqued the same question here why shell script fails

Dude, the shell script is not failing... the "apachectl" command is. Look at start4.log when it fails. You can help yourself by automatically emailing yourself the logfile when it fails. Just ADD:

if [ $? -gt 0 ]; then 
  mail -s "apache failed with $?" $USER < /tmp/start.4.log
fi