File size: 141 Bytes
f97d08b
b1588e7
f97d08b
 
 
1
2
3
4
5
6
import subprocess

# Run a shell command and capture its output
output = subprocess.check_output("ls -l", shell=True)
print(output.decode())