Depending on what exactly you want to do, you could probably achieve this using tmux and some combination of its hooks, pane flags and/or pipe-pane. I recommend searching for "monitor-", "-hook" and "pipe-pane" in tmux(1). Whether this would be better than Expect would depend on the task at hand. If you don't already use tmux and aren't interested in using it, Expect is probably better.Thanks. I tried to decipher tmux once and got nowhere, it's one of those situations where the documentation presumes you are already adept with the thing. I'll take another look tho.Eric