Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """This is an example subprocess usage
- import subprocess
- proc = subprocess.Popen(['tail', '-500', 'mylogfile.log'], stdout=subprocess.PIPE)
- for line in proc.stdout.readlines():
- print line.rstrip()
- """
- #!/usr/bin/env python
- import subprocess
- subprocess.call("ls -l", shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement