mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-03 18:42:14 +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 {
|
if wait {
|
||||||
<-proc.WaitCh
|
<-proc.WaitCh
|
||||||
output := pcm.ReadOutput(proc)
|
output := pcm.ReadOutput(proc)
|
||||||
|
fmt.Println("Read output", output)
|
||||||
if proc.ExitState == nil {
|
if proc.ExitState == nil {
|
||||||
return &ResponseRunProcess{
|
return &ResponseRunProcess{
|
||||||
Success: true,
|
Success: true,
|
||||||
|
@ -41,7 +41,7 @@ const (
|
|||||||
// execPath: command name
|
// execPath: command name
|
||||||
// args: args to command. (should not include name)
|
// args: args to command. (should not include name)
|
||||||
func Create(mode int, label string, execPath string, args []string, input string) (*Process, error) {
|
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...)
|
cmd := exec.Command(execPath, args...)
|
||||||
switch mode {
|
switch mode {
|
||||||
case ProcessModeStd:
|
case ProcessModeStd:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user