How do I retrieve the output of a shell command in python? eg output = os.system('ls -l') - but returns the output of "ls -l" or output = `ls -l` - like perl Thanks in advance Joe