Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. r, w = IO.pipe
  2. command = "..."
  3. pid = spawn(command, :[out, err]=>w)
  4. Process.detach(pid)
  5. print #{r.read}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement