Adam Hupp hupp at cs.wisc.edu
Tue Apr 29 23:54:48 CEST 2003

On Tue, Apr 29, 2003 at 09:36:07PM +0000, Jeroen Wolff wrote:

> Thx, but i need the .txt file because i have to parse it several time...
> with os.system( ) is the script waiting until the command is finished?
> I have to wait until i can open the generated .txt file

Yes, os.system will block until the command is completed.  If you need
to run through the data multiple times you can just store a list of
the lines though:

lines = os.popen("command").readlines()


More information about the Python-list mailing list