0
다음 작품을 포함하고 명령 출력 인쇄 :이동 exec.Command() - 실행 명령 파이프
out, err := exec.Command("ps", "cax").Output()
을하지만,이 하나 (종료 상태 1) 실패
out, err := exec.Command("ps", "cax | grep myapp").Output()
하나를 제안? 모든 것을 전달
out, err := exec.Command("bash", "-c", "ps cax | grep myapp").Output()