Terminal emulator for 6386 under UNIX(r)
a.v.reed
avr at mtgzz.att.com
Sun Jan 8 12:09:35 AEST 1989
In article <9877 at drutx.ATT.COM>, csr at drutx.ATT.COM (Steve Roush) writes:
> For strictly interactive use, I use "cu". ....
> I do not know of any UNIX programs outside of AT&T that allow scripting
> of sessions as can be done under DOS.
Oh yes you do, unless you've never heard of "tee".
Here is how you use tee to "script" a cu session:
$ cu <arguments to cu> | tee -ia script.out
And here is how you script a local sh session:
$ tee -ia script.out | sh -is 2>&1 | tee -ia script.out
Adam Reed (avr at mtgzz.ATT.COM)
More information about the Comp.unix.questions
mailing list