[Tutor] running program in terminal

Alan Gauld alan.gauld at btinternet.com
Tue Sep 25 01:09:43 CEST 2012

On 24/09/12 17:41, Benjamin Fishbein wrote:
> Hello. I can run programs in IDLE but when I try to do it in a terminal or with textwrangler, it usually just logs out and says it's completed, but the program hasn't been run. This is particularly so when the program uses urllib. I'm using OS X.
> logout
> [Process completed]
> That's what it prints.
> Any idea what to do?

Can you start up a terminal window then try to run your program and 
finally paste the whole session into a mail and post it here?

That should help.
If your program is complex try a simple one like:

print ('Hello world')
input('Hit enter to quit...')

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list