mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-02 18:12:15 +00:00
output file rename
This commit is contained in:
parent
c72eb1be99
commit
731b51f703
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user