Created
December 24, 2011 01:28
-
-
Save fredreichbier/1515877 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
| import os/[Process, Pipe] | |
| proc := Process new(["./print-stdin"]) | |
| proc setStdin(Pipe new()) | |
| proc executeNoWait() | |
| proc communicate("hello world!", null, null) |
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
| #!/usr/bin/env python2 | |
| import sys | |
| print repr(sys.stdin.read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment