Re: [LIP] Problem executing scripts Bad Interpreter

"Josy P. Pullockara" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization National Aerospace Laboratories
Message-ID <[email protected]>
On Wed, 2004-05-05 at 00:20, Vardhman Jain wrote:
> "-bash: ./configure: /bin/bash: bad interpreter: Permission denied"
> 
>  with "/bin/bash" and also "/usr/bin/env python". I have checked the file 
> permissions to be executable by all. The strange thing is that I am able 
> to run the script by saying "python <scriptname>" and not by 
> ./scriptname(for the python script containing #!/usr/bin/env python at the top).

First, check your $PATH:
$ echo $PATH
This is should contain .:/usr/bin:/bin

Then in your script the first line should be
#!/bin/bash
for a bash script and
#!/usr/bin/python
for a python script.

Of-course, check whether those executables /bin/bash and /usr/bin/python
exists!

> Last time I solved the error by just copying the executable to some other 
> partition, but this time the file sizes are quite big and I cannot repeat 
> the same method.

It has nothing to do with in what partition your executable is as long
as you have permissions to execute it!

Regards,
-- 
Josy P. Pullockara

Scientist,                             eMail:[email protected]
Computational and Theoretical          Phone:+91-80-2505 1627
Fluid Dynamics Division,               Fax  :+91-80-2522 0952
National Aerospace Laboratories        Res. :+91-80-2524 5053
----------------------------------------------------------------------
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.