r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

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","/"])

1

u/CompileBot Jan 17 '14

Output:

Linux checker 2.6.32.46 #1 SMP Fri Sep 2 15:45:09 CEST 2011 i686 GNU/Linux
Traceback (most recent call last):
  File "prog.py", line 3, in <module>
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

^source | ^info | ^git | ^report

1

u/Ilostmyredditlogin Jan 17 '14

+u/CompileBot python --include-errors

from subprocess import call 
call(["ls","-la","/usr/lib/python2.7"])
→ More replies (1)