Re: Clutz-Proof Logging
Stan Halprin wrote: 747478Hi; I know I'm a clutz but I'm sick and tired of doing some stupid thing that crashes my server, then trying to figure out what I did. Is there something out there that could log everything I did so that I could review it each time I shoot myself in the foot? TIA Stan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" I have found that the sudosh port is very useful for this, you can use it as your shell. It allows you to replay the full terminal session at a later date, including any special terminal control sequences such as ncurses etc.. It also alows you to adjust the replay speed and other useful features. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Clutz-Proof Logging
I'll try to follow up to two posts instead of replying twice, so I hope nobody gets confused here. :-) On 04/01/07, Vizion <[EMAIL PROTECTED]> wrote: - Original Message From: Bill Moran <[EMAIL PROTECTED]> >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. The history function of many modern shell is configurable. The number of commands being saved can be changed, as well as the behaviour regarding different ttys (so you might have different histories for different ttys you're coming from). The history function uses a file, so you rely on this file being written to disk. In case you reboot the machine it's possible that the history of the current session is lost. Take a look at the "script" command. It saves a typescript of everything being typed during a terminal session. So you've got your own copy without the need of a working and reliable history. And as Richard Lynch suggests it, using a versioning system like CVS or SVN might be a good idea. Or, as a simpler aproach: Just create a backup of a file before you touch it, for example by copying it to someplace else, and/or by adding a timestamp. 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". Are you talking about X windows or KDE or GNOME? Normally, any x based terminal executes a shell, so the history is still controlled by the shell being used. If you're using Konsole or gnome-terminal, it's possible that you can configure the history somewhere in the terminals gui, but in this case the terminal sends the apropriate commands to configure the history. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Clutz-Proof Logging
- Original Message From: Richard Lynch <[EMAIL PROTECTED]> >Jumping into the middle of a thread, possibly to disastrous effect... > >Perhaps you should be using subversion or CVS to keep version control >of your document? > >Far as I can tell from what's being said. Hmm. Maybe so. Good suggestion! Thanks, Stan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Clutz-Proof Logging
On Thu, January 4, 2007 10:46 am, Stan Halprin wrote: > What is a snapshot? I could just make a backup copy of it, which is > what I was thinking of doing, and revert if necessary. Of course, that > supposes I remember to do that :/ I was hoping for some program > smarter than me. Jumping into the middle of a thread, possibly to disastrous effect... Perhaps you should be using subversion or CVS to keep version control of your document? Far as I can tell from what's being said. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Clutz-Proof Logging
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Stan Halprin > Sent: Thursday, January 04, 2007 8:46 AM > To: freebsd-questions@freebsd.org > Subject: Re: Clutz-Proof Logging > > > 8376- Original Message > From: Vizion <[EMAIL PROTECTED]> > >I am not certain if you are using X or console. > > console > > >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. > > What is a snapshot? I could just make a backup copy of it, > which is what I was thinking of doing, and revert if > necessary. Of course, that supposes I remember to do that :/ > I was hoping for some program smarter than me. > Thanks, > Stan > OK well I suggest you take a look at the bash shell and start writing a few simple shell scripts to manage your own needs - they can be simply achieved using your shell. If you want a book I suggest "Learning the Bash Shell" by Camerin Newham & Bill Rosenblatt. Well worth its $35 asking price- putting it to good use will save you hours of your valuable time. IMHO learning a shell is the first step to using any **ix OS effectively. You can also use on-line resources but for me a book is best David David system ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Clutz-Proof Logging
8376- Original Message From: Vizion <[EMAIL PROTECTED]> >I am not certain if you are using X or console. console >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. What is a snapshot? I could just make a backup copy of it, which is what I was thinking of doing, and revert if necessary. Of course, that supposes I remember to do that :/ I was hoping for some program smarter than me. Thanks, Stan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Clutz-Proof Logging
- Original Message From: Bill Moran <[EMAIL PROTECTED]> >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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Clutz-Proof Logging
- Original Message From: Bill Moran <[EMAIL PROTECTED]> >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 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Clutz-Proof Logging
Stan Halprin <[EMAIL PROTECTED]> wrote: > > 747478Hi; > I know I'm a clutz but I'm sick and tired of doing some stupid thing > that crashes my server, then trying to figure out what I did. Is there > something out there that could log everything I did so that I could > review it each time I shoot myself in the foot? 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. HTH, Bill ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Clutz-Proof Logging
747478Hi; I know I'm a clutz but I'm sick and tired of doing some stupid thing that crashes my server, then trying to figure out what I did. Is there something out there that could log everything I did so that I could review it each time I shoot myself in the foot? TIA Stan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"