Re: shell access

2010-01-11 Thread Giorgos Tzampanakis
On 2010-01-11, monkeys paw wrote: > >>> print 'hey' > 'hey' > >>> # I want to access the shell here, how do i do that? Look into the commands module. -- http://mail.python.org/mailman/listinfo/python-list

Re: shell access

2010-01-11 Thread Tim Chase
monkeys paw wrote: How do you access the command line from the python interpreter? on unix: type python >>> print 'hey' 'hey' >>> # I want to access the shell here, how do i do that? If you're interactive, I'd just use standard process/job control, and hit control+Z to suspend and "fg"

Re: shell access

2010-01-11 Thread Arnaud Delobelle
monkeys paw writes: > How do you access the command line from the > python interpreter? > > on unix: > > type python > print 'hey' > 'hey' # I want to access the shell here, how do i do that? Like this? >>> import os >>> os.system('echo $HOME') /Users/arno 0 >>> -- Arnaud -- htt

shell access

2010-01-11 Thread monkeys paw
How do you access the command line from the python interpreter? on unix: type python >>> print 'hey' 'hey' >>> # I want to access the shell here, how do i do that? -- http://mail.python.org/mailman/listinfo/python-list