Re: a popen command line question

2009-08-31 Thread Nitebirdz
On Sat, Aug 29, 2009 at 01:13:12PM -0700, Joni Lee wrote: > Hi all, > > I write a small script > > status = os.popen('top').readlines() > print status > > It calls the command line "top" and will print out the status. > But I have to press the keyboard "q" to quit "top", then the status > will b

a popen command line question

2009-08-30 Thread Joni Lee
Hi all, I write a small script status = os.popen('top').readlines() print status It calls the command line "top" and will print out the status. But I have to press the keyboard "q" to quit "top", then the status will be printed, otherwise it just stands by with blank. Question is. Do you know