Re: Bash Script Problem
On 26 Aug 2002, Oliver Elphick wrote:
> The original error message was "bad interpreter: persmission denied".
> The error is saying that /bin/bash itself is not executable.
Not necessarily - if you try to execute a script, "./script", and _it's_
not executable, that's precisely the error generated.
OP, what happens when you do 'sh script' at a prompt? Does it
execute? If so, and you want it to execute without explicit invocation of
the shell, make sure the first line of the script is '#!/bin/sh' and make
it executable: 'chmod 750 script'. It should then execute with
'./script'.
Patrick
--
Patrick Wiseman pwiseman@mindspring.com
Linux user #17943 *Google First, Ask Later*
With 33 left to play, and up 18 in the loss column,
the Braves' Magic Number is 16!
Reply to: