Jeroen Wolff no at mail.com
Tue Apr 29 23:36:07 CEST 2003

> You want to use os.system or os.popen.  With popen you can read the
> results directly without using the intermediate file. 
> os.system('flow-cat <dirname> | flow-stat <param> > outputfile.txt')
> or
> flow = os.popen('flow-cat <dirname> | flow-stat <param>')
> for i in flow.readlines():
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


More information about the Python-list mailing list