2 Newbie questions.

Len Sumnler pcslen at comcast.net
Thu Oct 7 16:02:52 CEST 2004

Wolfram Kraus wrote:
> Len Sumnler wrote:
>> Hi All
>> I am running SuSe Linux ver. 9.0. I have written the famous "Hello 
>> World" program and want to run it as an executable.  I have searched
>> the net and performed chmod +x mypython.py and added as the first
>> line of my program #!/usr/bin/env python.  When I try to run the
>> program as follows $ mypython.py I get the error message of, "bash:
>> mypython.py: command not found".  What am i doing wrong.
> Your current directory is not in your PATH environment variable, so you
> have to call it with ./mypython.py or set your PATH. BTW your prompt 
> looks like you are user "root", don't do that, login as a normal user!
>> Second, I am looking for a good online tutorial for some one who
>> knows other programming languages assembler, cobol, etc any
>> suggestions.
> http://www.python.org/topics/learn/prog.html
>> Thanks Len Sumnler, Jr
> HTH,
> Wolfram
Hello Wolfram

Don't worry I'm not running as root. Tried the ./mypython.py and it 
worked.  Just thought there might ba a way to execute without using the 
"./" not a problem at this time just learning and exploring my options.

Len Sumnler

More information about the Python-list mailing list