Skip to content

Instantly share code, notes, and snippets.

@fredreichbier
Created December 24, 2011 01:28
Show Gist options
  • Select an option

  • Save fredreichbier/1515877 to your computer and use it in GitHub Desktop.

Select an option

Save fredreichbier/1515877 to your computer and use it in GitHub Desktop.
import os/[Process, Pipe]
proc := Process new(["./print-stdin"])
proc setStdin(Pipe new())
proc executeNoWait()
proc communicate("hello world!", null, null)
#!/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