>And here is how you script a local sh session: > >$ tee -ia script.out | sh -is 2>&1 | tee -ia script.out Didn't work very well at all when I tried running "vi"....