Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # this is from The Python
- # Standard Library by example
- # ISBN13: 9780321767349
- import subprocess
- print 'write:'
- proc = subprocess.Popen(['cat', '-'],
- stdin=subprocess.PIPE,
- )
- proc.communicate('\tstdin: to stdin\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement