Posting the contents of the script would be helpful. At the very least, we could suggest where to add debugging statements.
BTW, by giving the script execute permissions for everyone, you don't need to execute it as "sh script_name" - you can simply do "/path/to/script_name" or "./script_name". That requires "#!/bin/bash", "#!/bin/sh", or the appropriate interpreter as the first line of the script though.
|