From 731b51f703ca4f2f8d1a092a118c6fd63e0e4cd0 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Fri, 17 Apr 2015 11:11:13 -0700 Subject: [PATCH] output file rename --- cmd/barak/main.go | 1 + process/process.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/barak/main.go b/cmd/barak/main.go index c4e4ef2e..1da935c8 100644 --- a/cmd/barak/main.go +++ b/cmd/barak/main.go @@ -177,6 +177,7 @@ func RunProcess(wait bool, label string, execPath string, args []string, input s if wait { <-proc.WaitCh output := pcm.ReadOutput(proc) + fmt.Println("Read output", output) if proc.ExitState == nil { return &ResponseRunProcess{ Success: true, diff --git a/process/process.go b/process/process.go index 15f63c4d..1bbe686e 100644 --- a/process/process.go +++ b/process/process.go @@ -41,7 +41,7 @@ const ( // execPath: command name // args: args to command. (should not include name) func Create(mode int, label string, execPath string, args []string, input string) (*Process, error) { - outPath, outFile := makeFile(label) + outPath, outFile := makeFile("output_" + label) cmd := exec.Command(execPath, args...) switch mode { case ProcessModeStd: