2 Newbie questions.

Nick Craig-Wood nick at craig-wood.com
Thu Oct 7 09:30:11 CEST 2004

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...


>  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

Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick

More information about the Python-list mailing list