[CentOS] bash file direct execution

Tue Aug 2 17:24:13 UTC 2005
dan1 <dan1 at edenpics.com>

>} Hello all.
>} To continue with the problem I am facing, I have some news..
>} When I delete the line #!/bin/sh then the script works perfectly. When I
>} put it again then the problem occurs again.
>} So the script just containing 'echo test' just works fine, but the 
>script:
>} #!/bin/sh
>} echo test
>} doesn't work (except when put in the /root directory) ... and this is 
>true
>} for all other scripts.
>} So the question is: does anybody know what program is in charge of 
>parsing
>} that '#!/bin/sh' information, which apparently makes an error in the
>} parsing ?
>} Is there any linux guru that would know of it ?
>} Daniel
>
>greetings,
>
>may i ask what text editor you use? vi? pico? other?
>
> - rh
>
>--
>Robert Hanson


Hello, Robert.
Yes, I use vi.

But the solution has just been found: it was SElinux that was not setup 
properly. You can have a look at the last thread with [half-solved]

Thanks anyway!
Daniel