You are not logged in.

#1 2012-06-17 13:19:23

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

/bin/env: bad interpreter [Solved]

Hi, I have a script that I wrote for backing up important config files, it used to run fine now I get this error message:

/bin/env: bad interpreter

The script uses python2.7 the shebang is:

#!/bin/env python2.7

My $PATH is:

/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/kde/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/qt/bin

2.7 is not the default but as you see I am specifying that in the shebang, I retyped the line to make sure there wasn't any weird characters and no help.
I executed:

find /usr -type f -name 'python*' -perm -a+x

and here is the output as you can see it is listed.

/usr/lib/libreoffice/program/pythonloader.uno.so
/usr/lib/gimp/2.0/plug-ins/python-console.py
/usr/lib/gimp/2.0/plug-ins/python-eval.py
/usr/lib/weechat/plugins/python.so
/usr/lib/vmware-installer/2.0/python/python
/usr/lib/xchat/plugins/python.so
/usr/bin/python2.7-config
/usr/bin/python3
/usr/bin/python3.2
/usr/bin/python3.2mu
/usr/bin/python2.7
/usr/bin/python3.2mu-config
/usr/bin/python2.4

Anyone have an idea what this might be?


thanks in advance for your help.

--jerry

Last edited by jk121960 (2012-06-17 21:48:50)


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#2 2012-06-17 13:57:34

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: /bin/env: bad interpreter [Solved]

jk121960,

/bin/env moved to /usr/bin/env.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2012-06-17 14:19:54

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: /bin/env: bad interpreter [Solved]

That did it

thanks very much.

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#4 2012-06-17 21:15:22

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: /bin/env: bad interpreter [Solved]

Time to mark solved?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-06-17 21:48:09

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: /bin/env: bad interpreter [Solved]

Sorry my bad


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

Board footer

Powered by FluxBB