import subprocess
cmd = 'ls -al'
subprocess.call(cmd,shell=True)


drwxrwxr-x 2 root games       4096 Jun 28 12:45 linux_x86_64
-rw-r--r-- 1 root root        5235 Sep 15 08:02 install.log.syslog
-rw-r--r-- 1 root root       60894 Sep 15 08:02 install.log
-rw------- 1 root root        2285 Sep 15 08:02 anaconda-ks.cfg
drwxr-xr-x 2 root root        4096 Sep 15 08:20 Desktop

+ Recent posts