Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!odin!thestepchild!rhartman From: rhartman@thestepchild.sgi.com (Robert Hartman) Newsgroups: comp.unix.shell Subject: Re: How to log input and output in a shell Message-ID: <1991Apr26.002325.2198@odin.corp.sgi.com> Date: 26 Apr 91 00:23:25 GMT References: <1746@aut.autelca.ascom.ch> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 15 In article <1746@aut.autelca.ascom.ch> dhuber@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