public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Running Scripts
@ 2007-07-27 16:14 Greg Lindstrom
  2007-07-27 17:04 ` Alex Schuster
                   ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: Greg Lindstrom @ 2007-07-27 16:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

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.

Thanks for your help,

--greg

[-- Attachment #2: Type: text/html, Size: 789 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2007-07-29 12:53 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 16:14 [gentoo-user] Running Scripts Greg Lindstrom
2007-07-27 17:04 ` Alex Schuster
2007-07-27 17:11 ` Boyd Stephen Smith Jr.
2007-07-27 17:27 ` Uwe Thiem
2007-07-27 18:13   ` Greg Lindstrom
2007-07-27 18:47     ` Uwe Thiem
2007-07-27 19:04       ` Greg Lindstrom
2007-07-27 19:18         ` Eric Martin
2007-07-27 19:23         ` Florian Philipp
2007-07-28  6:29           ` Dirk Heinrichs
2007-07-27 20:38         ` Arturo 'Buanzo' Busleiman
2007-07-28 12:26     ` Kent Fredric
2007-07-28 14:33       ` Greg Lindstrom
2007-07-28 15:09         ` Uwe Thiem
2007-07-29  8:31           ` Alex Schuster
2007-07-29 12:47             ` Arturo 'Buanzo' Busleiman
2007-07-28 15:01       ` Uwe Thiem
2007-07-28 16:20         ` Kent Fredric
2007-07-28 16:27           ` Boyd Stephen Smith Jr.
2007-07-28 18:01         ` Arturo 'Buanzo' Busleiman
2007-07-28 18:03         ` Arturo 'Buanzo' Busleiman
2007-07-29 12:20     ` David Relson
2007-07-29 12:30       ` Uwe Thiem
2007-07-28 23:35 ` [gentoo-user] " Moshe Kamensky
2007-07-29  2:41   ` Moshe Kamensky
2007-07-29 12:41     ` Arturo 'Buanzo' Busleiman
2007-07-29  3:26   ` Kent Fredric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox