subprocess module

John Mechaniks sn.oo.py.9027 at gmail.com
Mon Jul 14 04:18:51 EDT 2008


from subprocess import call
call(['ls', '-l'])

How do I get the result (not the exit status of the command) of "ls -
l" into a variable?



More information about the Python-list mailing list