Skip to content

Instantly share code, notes, and snippets.

@faiface
Created June 28, 2017 21:13
Show Gist options
  • Save faiface/7cf2c22ced6cb35ff843c9f46c54d3e3 to your computer and use it in GitHub Desktop.
Save faiface/7cf2c22ced6cb35ff843c9f46c54d3e3 to your computer and use it in GitHub Desktop.
cmd1 := exec.Command("cmd1")
cmd2 := exec.Command("cmd2")
cmd1.Stdin = cmd2.Stdout
cmd2.Stdin = cmd1.Stdout
cmd1.Start()
cmd2.Start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment