[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash Script Problem - THANKS



THANKS - Since I wrote the script it never occurred to me that I wouldn't have permission to execute it but that was the case.  chmod corrected the problem.

On Mon, Aug 26, 2002 at 12:07:46PM -0400, Derrick 'dman' Hudson wrote:
> On Mon, Aug 26, 2002 at 11:48:22AM -0500, Thomas H. George,,, wrote:
> | When I start a script file (test) with #!/bin/bash I get a message:
> | 
> |   bash ./test /bin/bash - bad interpreter: persmission denied.
> | 
> | My syst is woody with kernel 2.4.18.  What is wrong?
> 
> First, it is good to avoid choosing a name that conflicts with other
> commands.  'test' is both /usr/bin/test and (with bash) a shell
> builtin.
> 
> Second, is the script executable?  Use 'ls -l ./test' and look for the
> 'x' characters in the permissions line.  It must be executable to
> execute it.
> 
> -D
> 
> -- 
> The lot is cast into the lap,
> but its every decision is from the Lord.
>         Proverbs 16:33
>  
> http://dman.ddts.net/~dman/




Reply to: