Possible Duplicate:
Executing command line programs from within python
How to execute single command within python and save everything between command and prompt to variable?
I've tried following code:
import os
var = os.system('ls')
Unfortunatelly, my var value is 0 instead 'ls' output.
How can I fix it?