abs
abs copied to clipboard
Ability to read command output line by line in a loop
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.