Thread: abc.sh*
View Single Post

   
  #4 (permalink)  
Old 01-05-2008, 10:10 AM
Alex van Denzel
 
Posts: n/a
Default Re: abc.sh*

77.sumeet@gmail.com wrote:
> Is it just by changing the permissions to execute ( chmod x script.sh)?


chmod +x script.sh
^
This will tell the system it's an executable, so "try to execute it".

To tell the system (or the shell) how to execute it, you to put the #!
line at the top of the file.

--
Alex.
Reply With Quote