> export UNIX95=1
> ps -ef -o "user,pcpu,cpu,sz"

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

import os

cmd = 'ls -al'

os.system(cmd) 


total 1571540
drwxr-x--- 26 root root        4096 Oct  4 01:22 .
drwxr-xr-x 33 root root        4096 Sep 20 01:17 ..
-rw-r--r--  1 root root  1462227520 Sep 17 01:45 ABR11A_ko-KR.exe
-rw-------  1 root root        2285 Sep 15 08:02 anaconda-ks.cfg
-rw-------  1 root root       16332 Sep 27 23:52 .bash_history
-rw-r--r--  1 root root          24 Jul 13  2006 .bash_logout
-rw-r--r--  1 root root         364 Sep 16 02:34 .bash_profile
-rw-r--r--  1 root root        1276 Sep 16 02:33 .bashrc
-rwxr-xr-x  1 root root          40 Oct  4 01:22 cmd.py

+ Recent posts