in reply to (solved) Redirect Shell Launch to perl script

Try using stdbuf, but it does not play nicely with tee...

stdbuf -oL -eL ${SERVER} 2>&1 | ${HIVE}

This turns off the 4K buffer that pipes have, and flushes as soon as a line break is found.

edit: See also: how-to-control-buffering-of-pipes-in-bash-scripts

Replies are listed 'Best First'.
Re^2: Redirect Shell Launch to perl script
by delpi (Novice) on Nov 27, 2016 at 18:18 UTC
    I'll give that a try.