<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all,<br><br>I write a small script<br><br>status = os.popen('top').readlines()<br>print status<br><br>It calls the command line "top" and will print out the status.<br>But I have to press the keyboard "q" to quit "top", then the status will be printed, otherwise it just stands by with blank.<br><br>Question is. Do you know how to give "q" into my python script so that "top" is automatically quit immediately or maybe after 1s (for gathering information)<br><br>Sorry the question is weird.<br></td></tr></table><br>