From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 16:32:06 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CBFB16A412 for ; Thu, 4 Jan 2007 16:32:06 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03.coxmail.com (dukecmmtao03.coxmail.com [68.99.120.70]) by mx1.freebsd.org (Postfix) with ESMTP id 98DC013C43E for ; Thu, 4 Jan 2007 16:32:05 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03 ([172.18.22.61]) by dukecmmtao03.coxmail.com (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with SMTP id <20070104163203.JLAW60.dukecmmtao03.coxmail.com@dukecmmtao03> for ; Thu, 4 Jan 2007 11:32:03 -0500 X-Mailer: Openwave WebEngine, version 2.8.16 (webedge20-101-1106-20040809) From: Vizion Organization: vizion Communications To: Date: Thu, 4 Jan 2007 8:32:04 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20070104163203.JLAW60.dukecmmtao03.coxmail.com@dukecmmtao03> Subject: RE: Clutz-Proof Logging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 16:32:06 -0000 ----- Original Message ---- From: Bill Moran >Many shells keep a history as a matter of normal operation. You might >find that enough for you. Personally, I use bash, and the command >"history" brings the last 100 commands or so. No, this isn't sufficient. The problems are: 1) occasionally the sysadmin people at the server farm do stuff 2) sometimes I edit files, and of course the shell doesn't record how 3) the shell history seems erratic! It remembers the session clearly, but if I reboot, for example, and look at the history, it's not what I would expect it to be. TIA, Stan I am not certain if you are using X or console. On X windows you can set the size of the history to your liking - I usually set to unlimited. Then, as frequently as one wishes, save the session to a log file. I have not found any problem with history not being the "history". As far as file editing is concerned if the file is important to you then you might want to try saving a snapshot when you open the file and use a small script to both save the snapshot and do a diff report that stores the differences between the file when you opened it and when you saved it. opened. That way you always have as permanent a record as you wish to keep. My 2 cents David