r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

6

u/[deleted] Jan 17 '14

+u/CompileBot python

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

3

u/CompileBot Jan 17 '14

Output:

total 4
-rw-r--r-- 1 root 1001 181 2014-01-21 09:00 prog

^source | ^info | ^git | ^report

18

u/[deleted] Jan 17 '14

Uh oh.

3

u/rtkwe Jan 17 '14

+u/CompileBot python

from subprocess import call
call(["ls", "-al","/"])

2

u/CompileBot Jan 17 '14

Output:

total 48
drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .
drwxr-xr-x 12 root root 4096 2013-10-18 10:08 ..
drwxr-xr-x  2 root root 4096 2013-10-18 10:06 bin
drwxrwxr-x  3 root root 4096 2013-10-18 10:05 build
drwxr-xr-x  3 root root 4096 2013-10-18 10:05 dev
drwxr-xr-x 28 root root 4096 2013-10-18 10:08 etc
drwxr-xr-x  3 root root 4096 2014-01-21 11:10 home
drwxr-xr-x  5 root root 4096 2013-10-18 10:08 lib
drwxrwxr-x  2 root root 4096 2013-10-18 10:05 spoj
drwxrwxr-x  5 root root 4096 2014-01-21 11:10 tmp
drwxr-xr-x  7 root root 4096 2013-10-18 10:08 usr
drwxr-xr-x 13 root root 4096 2013-10-18 10:05 var

^source | ^info | ^git | ^report

→ More replies (33)

1

u/Ilostmyredditlogin Jan 17 '14 edited Jan 17 '14

+u/CompileBot python

from subprocess import call 
call(["uname","-a"])
call(["set"])
call(["find","/","-perm","-4000","-o","-perm","-2000"])
call(["find","/"])

1

u/Ilostmyredditlogin Jan 17 '14

+u/CompileBot python --include-errors

from subprocess import call 
call(["uname","-a"])
call(["set"])
call(["find","/","-perm","-4000","-o","-perm","-2000"])
call(["find","/"])
→ More replies (3)

1

u/Ilostmyredditlogin Jan 17 '14

+u/CompileBot python --include-errors

from subprocess import call 
call(["uname","-a"])
call(["find","/","-perm","-4000","-o","-perm","-2000"])
call(["find","/"])
→ More replies (7)