2 Newbie questions.
Len Sumnler
pcslen at comcast.net
Thu Oct 7 10:05:10 EDT 2004
Nick Craig-Wood wrote:
> Len Sumnler <pcslen at comcast.net> wrote:
>
>> 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.
>
>
> The current directory isn't in your PATH. I don't suggest you add it
> - its not there for good security reasons. Instead invoke your
> program like this...
>
> ./mypython.py
>
>
>> Second, I am looking for a good online tutorial for some one who knows
>> other programming languages assembler, cobol, etc any suggestions.
>
>
> I've recently finished (the book version) of
> http://www.diveintopython.org/ - excellent for experienced
> programmers!
>
Thanks for the reply.
I understand the path warning. Appreciate your time.
Len Sumnler
More information about the Python-list
mailing list