Re: [Tutor] Store the output of os.system

2011-08-21 Thread Alan Gauld
On 21/08/11 18:15, ANKUR AGGARWAL wrote: Hey I am executing a grep command in my python program using os.system. I guess the first question is why? Python's re module can do pretty much anything that grep can do and do it inside your program with no extra processes being started. Why not just

Re: [Tutor] Store the output of os.system

2011-08-21 Thread Emile van Sebille
On 8/21/2011 10:15 AM ANKUR AGGARWAL said... Hey I am executing a grep command in my python program using os.system. I want to store the output somewhere but because of GUI's involved (generated using tkinter and pyzenity) I am unable to store my output or the result of the executed grep command

[Tutor] Store the output of os.system

2011-08-21 Thread ANKUR AGGARWAL
Hey I am executing a grep command in my python program using os.system. I want to store the output somewhere but because of GUI's involved (generated using tkinter and pyzenity) I am unable to store my output or the result of the executed grep command in some form. Can you guys tell me how to store