Utility to keep all typed command lines.

Gorham P. Miscall gorham at uiucme2.me.uiuc.edu
Wed Jan 3 05:06:15 AEST 1990


In article <1527 at utkcs2.cs.utk.edu> battle at alphard.cs.utk.edu (David Battle) writes:
>I would like to have an accounting utility which will keep not only
>the name of the command run but also the arguments, especially for commands
>typed at a shell by a human (as opposed to coming from a command file).
>Is there an existing utility which does this?  If not, can someone provide
>me with info on how to begin writing such a utility?  I would presume it would
>be similar to "ps", digging through kmem to get the command strings, or perhaps
>it would be better to make a front end to a shell (similar to what script
>does)?  Comments?  By the way, this is for Ultrix and doesn't have to be
>portable to other flavors of unix.
>
>						-David L. Battle
>						 battle at battle.esd.ornl.gov
>						 battle at utkux1.utk.edu

	The following was taken out of the January issue of UNIX World.  It
works very well for me:

	This captures all I/O of a terminal session to "Capture.file"

	tee -a Capture.file | sh -i 2>&1 | tee -a Capture.file



Hope this does the trick for you!


******************************************************************************
* Gorham P. Miscall                   "On a clear disk you can seek forever" *
* gorham at uiucme2.me.uiuc.edu                    -anonymous                   *



More information about the Comp.unix.wizards mailing list