How to log input and output in a shell

Robert Hartman rhartman at thestepchild.sgi.com
Fri Apr 26 10:23:25 AEST 1991


In article <1746 at aut.autelca.ascom.ch> dhuber at aut.autelca.ascom.ch (Daniel Huber) writes:
>How can I log any input or output from a shell into a file?
>
>I tried 
>
>sh | tee foo
>
>but I just got the output in this file.
>
>I would like to have ANY input and ANY output logged in the file
>"foo". Even the prompt...
>And it should be possible to log a vi session too.

BSD has a program called "script" that logs all I/O to the shell.  Not
sure about vi though.  -r



More information about the Comp.unix.shell mailing list