Hi,
I am a novice in python. I was trying to write a simple script on
Linux (python 3.0) that does the following
#cd directory
#ls -l
I use the following code, but it doesn't work:
import os
directory = '/etc'
pr = os.popen('cd %s' % directory,'w')
pr.close()
pr = os.popen('ls -l','w')
On 28 Oct, 13:39, banu varun.nagp...@gmail.com wrote:
Hi,
I am a novice in python. I was trying to write a simple script on
Linux (python 3.0) that does the following
#cd directory
#ls -l
I use the following code, but it doesn't work:
import os
directory = '/etc'
pr = os.popen('cd %s'
On Wed, Oct 28, 2009 at 9:39 AM, banu varun.nagp...@gmail.com wrote:
Hi,
I am a novice in python. I was trying to write a simple script on
Linux (python 3.0) that does the following
#cd directory
#ls -l
I use the following code, but it doesn't work:
import os
directory = '/etc'
pr =
On Oct 28, 3:02 pm, Jon Clements jon...@googlemail.com wrote:
On 28 Oct, 13:39, banu varun.nagp...@gmail.com wrote:
Hi,
I am a novice in python. I was trying to write a simple script on
Linux (python 3.0) that does the following
#cd directory
#ls -l
I use the following code, but
On Oct 28, 3:18 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote:
On Wed, Oct 28, 2009 at 9:39 AM, banu varun.nagp...@gmail.com wrote:
Hi,
I am a novice in python. I was trying to write a simple script on
Linux (python 3.0) that does the following
#cd directory
#ls -l
I use the
On Wed, 2009-10-28 at 07:15 -0700, banu wrote:
Thanks for the reply Jon
Basically I need to move into a folder and then need to execute some
shell commands(make etc.) in that folder. I just gave 'ls' for the
sake of an example. The real problem I am facing is, how to stay in
the folder
On Oct 28, 7:15 am, banu varun.nagp...@gmail.com wrote:
On Oct 28, 3:02 pm, Jon Clements jon...@googlemail.com wrote:
On 28 Oct, 13:39, banu varun.nagp...@gmail.com wrote:
Hi,
I am a novice in python. I was trying to write a simple script on
Linux (python 3.0) that does the