Friday, November 5, 2010

How Make a Shell Script Run in Snow Leopard

When trying to run a new shell script in bash, you may get the following error:
-bash: ./samplescript: Permission denied
Navigate to the file and type the following:
sudo chmod u+x samplescript
You should then be able to run said file by typing this:
./samplescript

0 comments:

Post a Comment