output file rename

This commit is contained in:
Jae Kwon 2015-04-17 11:11:13 -07:00
parent c72eb1be99
commit 731b51f703
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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: