Advertisement
flwkjlwekjfs

Untitled

Jul 8th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import subprocess, string
  2. process= subprocess.Popen(["ls","/tmp"], stdout=subprocess.PIPE, universal_newlines=True)
  3. out, err = process.communicate()
  4. for line in out.splitlines():
  5. print(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement