The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-27-2009
colemar colemar is offline
Registered User
  
 

Join Date: Apr 2009
Location: Trento, Italy
Posts: 116
Quote:
Originally Posted by Deepakkumard View Post
./start.sh

but it shows an error that 'cannot execute '
Sounds like the file start.sh is missing the x mode bits.


Code:
chmod u+x start.sh

Also you should explicitly state in the first line of the script what is the interpreter program that should be invoked to run the rest of the script.
For a shell script one of the following should do:
#!/bin/sh
#!/bin/ksh
#!/bin/bash
#!/bin/csh