have you made it executable?

chmod +x helloworld

you will need to quote your message as <space> is the bash delimter, ie
after World in your line it thinks you are finished the echo command.

echo "Hello World"



On Mon, 23 Feb 2004 10:29:32 +1300
Patrick Dunford <[EMAIL PROTECTED]> wrote:

> Hi, just trying a very simple hello world script
> 
> #!/bin/bash
> echo Hello World
> 
> saved as helloworld
> 
> Trying to run this ./helloworld
> 
> returns
> 
> bash: ./helloworld: /bin/bash: bad interpreter: Permission denied
> 
> whereis bash returns
> 
> bash: /bin/bash /etc/bash/bash.rc /usr/share/man/man1/bash.gz
> 
> This is the same whether logged in as root or not. What is happening here?

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to