Open gustavosbarreto opened 2 years ago
NOTE: the command need to be executed in the background.
for line in `tail -f /tmp/log &` { echo(line) }
Also combines the stdout and stderr of executed command in the same ouput, like native Go implementation of cmd.CombinedOutput.
cmd.CombinedOutput
NOTE: the command need to be executed in the background.
Also combines the stdout and stderr of executed command in the same ouput, like native Go implementation of
cmd.CombinedOutput
.