SoFunction
Updated on 2025-03-05

Go language method to connect two command line processes through pipeline

package main
import (
  "os"
  "os/exec"
  "fmt"
  "flag"
  "strings"
)
func main() {
generator := ("cmd1")
consumer := ("cmd2")
pipe, err := ()
= pipe
}