Created
March 22, 2015 20:53
-
-
Save cablehead/5d62e72d0debcacd3235 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> python | |
Python 2.7.6 (default, Sep 9 2014, 15:04:36) | |
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import vanilla | |
>>> h = vanilla.Hub() | |
>>> child = h.process.execv(['/usr/bin/env', 'grep', '--line-buffered', 'foo']) | |
>>> child.stdin.send('foo1\n') | |
>>> child.stdout.recv() | |
'foo1\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment