Skip to content

Instantly share code, notes, and snippets.

@cablehead
Created April 3, 2015 00:04
Show Gist options
  • Save cablehead/0f0ab7d0ea55384a2a48 to your computer and use it in GitHub Desktop.
Save cablehead/0f0ab7d0ea55384a2a48 to your computer and use it in GitHub Desktop.
lines = h.pipe()
@h.spawn
def _():
while True:
line = child.stdout.recv_partion('\n')
lines.send(line)
lines.pipe(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment