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

Re: Bash Script Problem THANKS ALL



Thanks, as many of you noted it was my script that was not executable.  I wrote it as root and it never occurred to me that, as root, I wouldn't have execution persmission to my own script.  I will also avoid using test as a file name in the future - Tom George


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: