The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Cann ot execute a shell command
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Cann ot execute a shell command
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-27-2009
colemar
Registered User
Join Date: Apr 2009
Location: Trento, Italy
Posts: 116
Quote:
Originally Posted by
Deepakkumard
./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
colemar
View Public Profile
Find all posts by colemar
Find colemar's past nominations received
Find colemar's present nominations given