Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!usc!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!uiucme2!gorham From: gorham@uiucme2.me.uiuc.edu (Gorham P. Miscall) Newsgroups: comp.unix.wizards Subject: Re: Utility to keep all typed command lines. Message-ID: <1990Jan2.180615.28396@ux1.cso.uiuc.edu> Date: 2 Jan 90 18:06:15 GMT References: <1527@utkcs2.cs.utk.edu> Sender: news@ux1.cso.uiuc.edu (News) Reply-To: gorham@uiucme2.UUCP (Gorham P. Miscall) Organization: University of Illinois Mechanical Engineering Lines: 30 In article <1527@utkcs2.cs.utk.edu> battle@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@battle.esd.ornl.gov > battle@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@uiucme2.me.uiuc.edu -anonymous *