Writing to Multiple Terminals for Demonstrations

To show what one person is typing, and let people watch at other terminals:

  1. The person doing the demonstration starts an interactive shell with a command like:

    % csh -i |& tee /tmp/log $ csh -i 2>&1 | tee /tmp/log
    

    Use exit to leave the shell. To start a Bourne shell, type sh instead of csh.

  2. Everyone who wants to watch types:
    tail -f 
    
    tail -f /tmp/log
    

    and uses CTRL-c to kill tail-f when they're done.

There are a couple of gotchas:

- JP