os.spawn

Jeroen Wolff no at mail.com
Tue Apr 29 09:29:41 EDT 2003


Hi,

I want to run some shell commands from within python. 
Wat i normal do at the shell prompt is:
'flow-cat <dirname> | flow-stat <param> > outputfile.txt'

I like to do this from within python and wait for it to finish and the 
process the outputfile.txt
Is this possible? The problem is with '|' and '>" piping....

Can somebody please help?

Thanks,

Jeroen Wolff




More information about the Python-list mailing list