the permission denied is one of 2 things 1) set permissions to 755 2) set the first line to read #!/bin/sh instead of #/bin/sh