|
List Info
Thread: Re: Running Scripts
|
|
| Re: Running Scripts |
  Argentina |
2007-07-28 13:03:19 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Uwe Thiem wrote:
> I am out of ideas - and still a bit puzzled how
/usr/bin/env got involved (see
> original post).
Heh, if we had enough trust, I'd remote login to the server
and see what's wrong by myself
- --
Arturo "Buanzo" Busleiman - Consultor
Independiente en Seguridad Informatica
SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King,
Capital Federal)
Entradas anticipadas a traves de www.futurabanda.com.ar -
Punk Rock Melodico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGq4TnAlpOsGhXcE0RCq4WAJ9w9zvOkfTXFyBCm5fpiygGJ1cUXACe
LSn4
gYHmRwIuIzQcZZW/7mSpxSQ=
=4O8N
-----END PGP SIGNATURE-----
--
gentoo-user gentoo.org mailing list
|
|
| Re: Running Scripts |

|
2007-07-28 18:35:17 |
HI,
* GREG LINDSTROM <GSLINDSTROM GMAIL.COM> [27/07/07
12:18]:
> HELLO-
>
> I AM PROGRAMMING PYTHON (2.4.1) SCRIPTS TO RUN ON OUR
GENTOO BOXES AND AM
> HAVING A BIT OF TROUBLE I WAS HOPING YOU COULD HELP ME
WITH. MY FILE,
> HELLO.PY LOOKS LIKE THIS:
>
> #!/USR/BIN/PYTHON
> PRINT 'HELLO, PYTHON'
>
> I ADD EXECUTE PERMISSION TO THE FILE AND TRY TO RUN IT
AS FOLLOWS:
>
> MYPROMPT $ ./HELLO.PY
>
> AND GET
>
> -BASH: ./HELLO.PY: /USR/BIN/ENV: BAD INTERPRETER:
PERMISSION DENIED
>
> RUNNING /USR/BIN/PYTHON BRINGS UP THE PYTHON SHELL, SO
THAT'S IN PLACE.
>
> WHAT AM I MISSING TO RUN THESE FILES (THEY RUN FINE
WITH I TYPE IN 'PYTHON'
> BEFORE THE FILENAME). BTW, I HAVE THE SAME ISSUE
RUNNING PERL SCRIPTS WHICH
> IS WHY I'M ASKING THE QUESTION HERE.
>
DID YOU MANAGE TO RUN SUCH SCRIPTS LOCATED IN OTHER
DIRECTORIES? I THINK
YOU NEED SUPPORT IN THE KERNEL FOR SUCH SCRIPTS. DO YOU SEE
CONFIG_BINFMT_MISC=Y
IN /PROC/CONFIG.GZ?
MOSHE
> THANKS FOR YOUR HELP,
>
> --GREG
|
|
| Re: Running Scripts |

|
2007-07-28 21:41:45 |
HI,
* GREG LINDSTROM <GSLINDSTROM GMAIL.COM> [27/07/07
12:18]:
> HELLO-
>
> I AM PROGRAMMING PYTHON (2.4.1) SCRIPTS TO RUN ON OUR
GENTOO BOXES AND AM
> HAVING A BIT OF TROUBLE I WAS HOPING YOU COULD HELP ME
WITH. MY FILE,
> HELLO.PY LOOKS LIKE THIS:
>
> #!/USR/BIN/PYTHON
> PRINT 'HELLO, PYTHON'
>
> I ADD EXECUTE PERMISSION TO THE FILE AND TRY TO RUN IT
AS FOLLOWS:
>
> MYPROMPT $ ./HELLO.PY
>
> AND GET
>
> -BASH: ./HELLO.PY: /USR/BIN/ENV: BAD INTERPRETER:
PERMISSION DENIED
>
> RUNNING /USR/BIN/PYTHON BRINGS UP THE PYTHON SHELL, SO
THAT'S IN PLACE.
>
> WHAT AM I MISSING TO RUN THESE FILES (THEY RUN FINE
WITH I TYPE IN 'PYTHON'
> BEFORE THE FILENAME). BTW, I HAVE THE SAME ISSUE
RUNNING PERL SCRIPTS WHICH
> IS WHY I'M ASKING THE QUESTION HERE.
>
DID YOU MANAGE TO RUN SUCH SCRIPTS LOCATED IN OTHER
DIRECTORIES? I THINK
YOU NEED SUPPORT IN THE KERNEL FOR SUCH SCRIPTS. DO YOU SEE
CONFIG_BINFMT_MISC=Y
IN /PROC/CONFIG.GZ?
MOSHE
> THANKS FOR YOUR HELP,
>
> --GREG
|
|
| Re: Running Scripts |
  Germany |
2007-07-29 03:31:12 |
Uwe Thiem writes:
> I am out of ideas - and still a bit puzzled how
/usr/bin/env got
> involved (see original post).
According to the od output, the first line is not
"#!/usr/bin/python",
but "#!/usr/bin/env python". But that seems to
work well for me, too.
I'd try to put the script onto several file systems and try
out what
happens there. emerge starts with "#!/usr/bin/python
-O", and I guess
this is still working.
Alex
--
gentoo-user gentoo.org mailing list
|
|
| Re: Running Scripts |
  United States |
2007-07-29 07:20:38 |
On Fri, 27 Jul 2007 13:13:08 -0500
Greg Lindstrom wrote:
..[snip]...
> I'm not sure what you are asking here.
>
> $ ls -l /usr/bin/env
> lrwxrwxrwx 1 root root 8 May 18 2006 /usr/bin/env
-> /bin/env
>
> $ ls -l /usr/bin/python
> lrwxrwxrwx 1 root root 9 May 18 2006 /usr/bin/python
-> python2.4
This looks suspicious to me. /usr/bin/python is a symlink
to
python2.4.
Where is python2.4? Is it on your path?
Can you run it with command "python2.4" ???
What do the following commands report:
which python
which python2.4
HTH.
Regards,
David
--
gentoo-user gentoo.org mailing list
|
|
| Re: Running Scripts |

|
2007-07-29 07:30:57 |
On 29 July 2007, David Relson wrote:
> On Fri, 27 Jul 2007 13:13:08 -0500
> Greg Lindstrom wrote:
>
> ..[snip]...
>
> > I'm not sure what you are asking here.
> >
> > $ ls -l /usr/bin/env
> > lrwxrwxrwx 1 root root 8 May 18 2006 /usr/bin/env
-> /bin/env
> >
> > $ ls -l /usr/bin/python
> > lrwxrwxrwx 1 root root 9 May 18 2006
/usr/bin/python -> python2.4
>
> This looks suspicious to me. /usr/bin/python is a
symlink to
> python2.4.
>
> Where is python2.4? Is it on your path?
Nothing suspicious here. /usr/bin/python is a symlink to
/usr/bin/puthon2.4 -
at least on a gentoo system. And while python2.4 *is* in the
path
(because /usr/bin is), it doesn't really matter as long as
/usr/bin/python
is.
Uwe
--
Jethro Tull: Maybe, I am not done yet!
--
gentoo-user gentoo.org mailing list
|
|
| Re: Re: Running Scripts |
  Argentina |
2007-07-29 07:41:55 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
This error:
bash: ./hello.py: /usr/bin/env: bad interpreter: Permission
denied
Means exactly that "/usr/bin/env is not a balid
interpreter, because you don't have permission to
execute it".
Gives us the output of the "id" command, and ls -l
/usr/bin/env, of course, run the "id" command
from the user you were logged in when trying the hello.py
script.
- --
Arturo "Buanzo" Busleiman - Consultor
Independiente en Seguridad Informatica
SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King,
Capital Federal)
Entradas anticipadas a traves de www.futurabanda.com.ar -
Punk Rock Melodico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGrIsTAlpOsGhXcE0RCswWAJ9gpPDBb+BHIaOZtDy6nuIwfrThKwCf
bRWd
xHOKX/uQyY3noVWxlsKBagA=
=/MDg
-----END PGP SIGNATURE-----
--
gentoo-user gentoo.org mailing list
|
|
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|