Re: 2 Newbie questions.
From: Len Sumnler (pcslen_at_comcast.net)
Date: 10/07/04
- Next message: Thomas Guettler: "Re: Converting a set of data to string and then into a file"
- Previous message: Russell Blau: "Re: Calling a constructor by reference"
- In reply to: Wolfram Kraus: "Re: 2 Newbie questions."
- Next in thread: Andreas Kostyrka: "Re: 2 Newbie questions."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 07 Oct 2004 14:02:52 GMT
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.
Thanks
Len Sumnler
- Next message: Thomas Guettler: "Re: Converting a set of data to string and then into a file"
- Previous message: Russell Blau: "Re: Calling a constructor by reference"
- In reply to: Wolfram Kraus: "Re: 2 Newbie questions."
- Next in thread: Andreas Kostyrka: "Re: 2 Newbie questions."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]