4 ms·
> You can ssh host1 tail -F log | sed -e s/^/host1:/ That's only for one host. If you mean something akin to: tail -F <(ssh ...) <(ssh ...) that wouldn't
by jolmg 5y ago
> You can ssh host1 tail -F log | sed -e s/^/host1:/
That's only for one host. If you mean something akin to:
tail -F <(ssh ...) <(ssh ...)
that wouldn't work, because `tail` would wait for the first `ssh/sed` to close their output (to reach the end of the first pipe) before starting to read the second `ssh/sed`'s output.
- a1369209993 5y agoYou can do: $ ssh ... >a.log & $ ssh ... >b.log & $ tail -F a.log b.log
- jolmg 5y agoYou're right. That's pretty practical. I guess I try too hard to avoid writing to disk when I can.