Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread Alan Gauld
"michael scott" wrote say, how do I install a program to my computer, so that I can use it by its self without running it with python. Just to be clear, Python programs are interpreted by the Python interpreter. So while you can set things up such that you don't need to explicitly cakll

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread davidheiserca
n Linux, it would be "myprogram.sh" with the executable bit set. - Original Message - From: michael scott To: tutor@python.org Sent: Friday, May 20, 2011 11:10 AM Subject: Re: [Tutor] Making a script part of the terminal Thank you for the reply, but thats not

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread Joel Goldstick
inology to ask the question correctly, so forgive me. > > > > What is it about you... that intrigues me so? > > > -- > *From:* James Reynolds > *To:* michael scott > *Cc:* tutor@python.org > *Sent:* Fri, May 20, 2011 1:57:57 PM > *Subje

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread Andre' Walker-Loud
gt; > From: James Reynolds > To: michael scott > Cc: tutor@python.org > Sent: Fri, May 20, 2011 1:57:57 PM > Subject: Re: [Tutor] Making a script part of the terminal > > We just had a similar question yesterday. > > Just make sure Python is on your PATH. CD to the d

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread ian douglas
To expand further, some distributions of Linux set a 'bin' path under your home folder as part of your native PATH, even if it doesn't exist. So if your Linux username is, say, "mscott", see if "echo $PATH" already includes something like "/home/mscott/bin" in the path already. If so, simply c

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread michael scott
Thank you gentlemen so much, I believe I have all that I need to do what I wish. What is it about you... that intrigues me so?___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/list

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread michael scott
u... that intrigues me so? From: James Reynolds To: michael scott Cc: tutor@python.org Sent: Fri, May 20, 2011 1:57:57 PM Subject: Re: [Tutor] Making a script part of the terminal We just had a similar question yesterday. Just make sure Python is on your PATH. CD to the dir

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread Noah Hall
On Fri, May 20, 2011 at 6:43 PM, michael scott wrote: > Okay, my title might be undescriptive, let me try to explain it better. I > want to take a script I've written and make it usable by typing its name in > the terminal. Perfect example is the python interpreter. You just type in > the word pyt

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread r...@schoenian-online.de
Hello Michael,   first you have to give your script an executable bit. Just type chmod +x your_script.py Furhtermore, your script has to be in a directory that is also part of your search path. Type in echo $PATH to see how your path is set. You can either link or copy your script to an approprate

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread Edgar Almonte
hey ! i can answer that ! birst in the fist line of you script put something like this #!/usr/local/bin/python change the path for where you have python ( try using 'whereis python' ) sencond make the file executable add the +x attribute ( using chmod ) third put the script in some place and

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread Timo
On 20-05-11 19:43, michael scott wrote: Okay, my title might be undescriptive, let me try to explain it better. I want to take a script I've written and make it usable by typing its name in the terminal. Perfect example is the python interpreter. You just type in the word python to the terminal

Re: [Tutor] Making a script part of the terminal

2011-05-20 Thread James Reynolds
We just had a similar question yesterday. Just make sure Python is on your PATH. CD to the directory where your file is located and then you can just type "python myfile.py" where myfile is the name of your file. On Fri, May 20, 2011 at 1:43 PM, michael scott wrote: > Okay, my title might be und

[Tutor] Making a script part of the terminal

2011-05-20 Thread michael scott
Okay, my title might be undescriptive, let me try to explain it better. I want to take a script I've written and make it usable by typing its name in the terminal. Perfect example is the python interpreter. You just type in the word python to the terminal and then the interpreter runs. I know ot