Re: [ILUG] problem running scripts and executables

From: John Allen (john.allen at domain online.ie)
Date: Sat 22 Jun 2002 - 09:51:53 IST


Conor Lennon wrote:

> # which sh
> /bin/sh
> # ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Jan 12 2000 /bin/sh -> bash
> # ls -l /bin/bash
> -rwxr-xr-x 1 root root 442760 Oct 25 2001 /bin/bash
>
> deleting the space makes no difference.
>
> Some information I forgot to mention:
> ./configure doesn't work but sh configure does.
>
> Conor
>
> John McAree (HSA) wrote:
>
>> Hi,
>>
>>
>>
>>> # ./configure
>>> bash: ./configure: bad interpreter: Permission denied
>>>
>>> The first line of the configure script is
>>> #! /bin/sh
>>>
>>> The file attributes seem ok:
>>> # ls -l configure
>>> -rwxr-xr-x 1 1000 users 423782 Jun 5 18:18 configure
>>>
>>
>>
>> This sounds more like it's having a problem running /bin/sh...try
>> checking the
>> permissions on that...
>>
>> Oh, and I'm not sure whether it's convention, but there usually isn't
>> a space
>> after #!...it could be causing a problem too...
>
For correctness there *should be a space*.

>>
>> John.
>>
>>
>>
>
>



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:25 GMT