Possible Duplicate:
How do I run .sh files in Terminal?

When I try to run a .sh script in Terminal it says I have no permissions to do that. And when I try to run an executable nothing happens at all!

marked as duplicate by Marco Ceppi Dec 26 '11 at 0:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You can start by adding to the question the commands you are using to run it on a terminal, the output of ls -l while on the script's folder and any further steps you tried and what errors you get when trying to run the script. Add that information to the question instead of adding it as a comment. – Bruno Pereira Dec 25 '11 at 12:15
  • chmod +x a.sh; ./a.sh (make it executeable first). – YumYumYum Dec 25 '11 at 12:45
  • That's a hard guessing game. First, provide the output of ls -l script.sh, and a first line of your script. – Andrejs Cainikovs Dec 25 '11 at 18:55