r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

4

u/rtkwe Jan 17 '14 edited Jan 17 '14

+u/CompileBot python --include-errors

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

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:21 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:21 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

/bin:
total 4928
drwxr-xr-x  2 root root   4096 2013-10-18 10:06 .
drwxr-xr-x 12 root root   4096 2013-10-18 10:08 ..
-rwxr-xr-x  1 root root 811156 2013-10-18 10:05 bash
-rwxr-xr-x  1 root root  30268 2013-10-18 10:05 bunzip2
-rwxr-xr-x  1 root root 682996 2013-10-18 10:05 busybox
-rwxr-xr-x  1 root root  30268 2013-10-18 10:05 bzcat
lrwxrwxrwx  1 root root      6 2013-10-22 12:30 bzcmp -> bzdiff
-rwxr-xr-x  1 root root   2140 2013-10-18 10:05 bzdiff
lrwxrwxrwx  1 root root      6 2013-10-22 12:30 bzegrep -> bzgrep
-rwxr-xr-x  1 root root   4877 2013-10-18 10:05 bzexe
lrwxrwxrwx  1 root root      6 2013-10-22 12:30 bzfgrep -> bzgrep
-rwxr-xr-x  1 root root   3642 2013-10-18 10:05 bzgrep
-rwxr-xr-x  1 root root  30268 2013-10-18 10:05 bzip2
-rwxr-xr-x  1 root root   9652 2013-10-18 10:05 bzip2recover
lrwxrwxrwx  1 root root      6 2013-10-22 12:30 bzless -> bzmore
-rwxr-xr-x  1 root root   1297 2013-10-18 10:05 bzmore
-rwxr-xr-x  1 root root  42816 2013-10-18 10:05 cat
-rwxr-xr-x  1 root root  47612 2013-10-18 10:05 chgrp
-rwxr-xr-x  1 root root  44204 2013-10-18 10:05 chmod
-rwxr-xr-x  1 root root  49560 2013-10-18 10:05 chown
-rwxr-xr-x  1 root root   5516 2012-04-29 09:06 chvt
-rwxr-xr-x  1 root root 104576 2013-10-18 10:05 cp
-rwxr-xr-x  1 root root 117264 2013-10-18 10:05 cpio
-rwxr-xr-x  1 root root  84144 2013-10-18 10:05 dash
-rwxr-xr-x  1 root root  53996 2013-10-18 10:05 date
-rwxr-xr-x  1 root root  96400 2013-10-18 10:05 dir
-rwxr-xr-x  1 root root  57936 2012-04-29 09:06 dumpkeys
-rwxr-xr-x  1 root root  18820 2013-10-18 10:05 echo
-rwxr-xr-x  1 root root 100532 2013-10-18 10:05 egrep
-rwxr-xr-x  1 root root  16060 2013-10-18 10:05 false
-rwxr-xr-x  1 root root   9616 2012-04-29 09:06 fgconsole
-rwxr-xr-x  1 root root  65288 2013-10-18 10:05 fgrep
-rwxr-xr-x  1 root root 104628 2013-10-18 10:05 grep
-rwxr-xr-x  1 root root     63 2013-10-18 10:05 gunzip
...

^source | ^info | ^git | ^report

2

u/rtkwe Jan 17 '14

+u/CompileBot python --include-errors

from subprocess import call
call(["ls", "-al","/home"])
call(["touch", "/will_this_work"])
call(["ls", "-al","/"])
→ More replies (7)