Re: [gentoo-user] bash_history
On 3/7/06, Haim Ashkenazi [EMAIL PROTECTED] wrote: when you press reboot the shell process dies, so it doesn't save the history. if you want to save history you have to exit the shell and then login and enter reboot, or press ctrl+alt+del. What about putting the following: trap history -w EXIT in ~/.bash_profile or /etc/profile? This way the current history is flushed when the shell exits. My 2c -- Matteo Lanza [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
[gentoo-user] bash_history
Hello! I am wondering what do I need to config so that when a user or root type reboot the commands typed before a saved in bash_history and also when the user or root don' type anything but just press combination of keys ctrl+alt+del? Goran
Re: [gentoo-user] bash_history
On Tue, 2006-03-07 at 01:17 +0100, Goran Maksimović wrote: Hello! I am wondering what do I need to config so that when a user or root type reboot the commands typed before a saved in bash_history and also when the user or root don' type anything but just press combination of keys ctrl+alt+del? when you press reboot the shell process dies, so it doesn't save the history. if you want to save history you have to exit the shell and then login and enter reboot, or press ctrl+alt+del. Bye -- Haim signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] .bash_history not updating
--- Stroller [EMAIL PROTECTED] wrote: On Nov 24, 2005, at 3:05 am, maxim wexler wrote: $ ls -l .bash_history -rw--- 1 blissfix usb8021 Nov 22 11:31 .bash_history Is there some sort of chron thingee going off every nine days? Maybe you're only logging out every 9 days?? Negative. At least once a day. Stroller. -- gentoo-user@gentoo.org mailing list __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
[gentoo-user] .bash_history not updating
Hello everybody, My .bash_history file stopped being updated on Nov 13 10:06. A look at /var/log/messages for that particular time revealed nothing amiss. Anybody shed light on this issue? -mw __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] .bash_history not updating
On Nov 23, 2005, at 7:35 pm, maxim wexler wrote: My .bash_history file stopped being updated on Nov 13 10:06. A look at /var/log/messages for that particular time revealed nothing amiss. Ok... this could be a dumb question, but how much disk space do you have free? Stroller. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] .bash_history not updating
--- Stroller [EMAIL PROTECTED] wrote: On Nov 23, 2005, at 7:35 pm, maxim wexler wrote: My .bash_history file stopped being updated on Nov 13 10:06. A look at /var/log/messages for that particular time revealed nothing amiss. Ok... this could be a dumb question, but how much disk space do you have free? Plenty. But just noticed, $ls -l .bash_history -rw--- 1 blissfix usb8021 Nov 22 11:31 .bash_history Is there some sort of chron thingee going off every nine days? Stroller. -- gentoo-user@gentoo.org mailing list __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] .bash_history not updating
On Nov 24, 2005, at 3:05 am, maxim wexler wrote: $ ls -l .bash_history -rw--- 1 blissfix usb8021 Nov 22 11:31 .bash_history Is there some sort of chron thingee going off every nine days? Maybe you're only logging out every 9 days?? Stroller. -- gentoo-user@gentoo.org mailing list
RE: [gentoo-user] bash_history missing
So if you do ls -l .bash* in your home directory, what's the output? [EMAIL PROTECTED] blissfix $ ls -l .bash* -rw-r--r-- 1 blissfix users 0 Jul 6 14:59 .bash_history -rw-r--r-- 1 blissfix users 232 Jul 2 21:12 .bash_profile -rw-r--r-- 1 blissfix users 812 Jul 2 21:12 .bashrc Note: this .bash_history was manually created w/ nano, whereas some hidden process created the one in root. And if I delete the home version another doesn't pop up on its own. BTW, the root version of .bash_history is chockful of retrospective goodness :). Also, each home console session preserves a record somewhere; the up arrow can access those. Even if I logout in and out they're still there. It's just when rebooting the unit they disappear. Where are they kept, I wonder. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
On Thu, 7 Jul 2005, maxim wexler wrote: all academic now -- the pc just died :( Not a beep, no screen o/p. The green light on front of the box comes on for about 1/10 sec, fan turns a few degrees and thats IT! Tried another power supply -- no dice. Tried bypassing the on switch -- nope. Moved RAM to another slot -- nada. rere'd the 3V battery -- negative. I've never seen the like before. Tried replacing the CPU fan? I've seen that before - the motherboard detects that the CPU fan is spinning too slowly, and shuts down, preventing diagnosis. -- That which does not kill me makes me stranger () The ASCII Ribbon Campaign against HTML Email, /\ vCards, and proprietary formats. http://www.georgedillon.com/web/html_email_is_evil.shtml -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
Hi, On Thu, 7 Jul 2005 21:14:44 -0700 (PDT) maxim wexler [EMAIL PROTECTED] wrote: all academic now -- the pc just died :( Not a beep, no screen o/p. The green light on front of the box comes on for about 1/10 sec, fan turns a few degrees and thats IT! Tried another power supply -- no dice. Tried bypassing the on switch -- nope. Moved RAM to another slot -- nada. rere'd the 3V battery -- negative. I've never seen the like before. Sounds like the onboard DC current stabilizers are gone... In my experiences, it's not unusual that one of the electrolytic capacitors is burst. Resoldering a new one is not an easy task but possible. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
maxim wexler wrote: all academic now -- the pc just died :( Not a beep, no screen o/p. The green light on front of the box comes on for about 1/10 sec, fan turns a few degrees and thats IT! Tried another power supply -- no dice. Tried bypassing the on switch -- nope. Moved RAM to another slot -- nada. rere'd the 3V battery -- negative. I've never seen the like before. Please tell me it isn't the same system that gave you so much trouble with grub!! :- -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing --now w/ dead pc
Please tell me it isn't the same system that gave you so much trouble with grub!! :- -Richard It is. Glad I have this spare(K6) -- gentoo-user@gentoo.org mailing list __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
RE: [gentoo-user] bash_history missing
Then set the same environment variables in your current shell and they should stick. Nope, .bash_history completely empty after a bunch of ls's. At least it didn't tell me to become root :o So if you do ls -l .bash* in your home directory, what's the output? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
On 08:51 Thu 07 Jul , Dave Nebinger wrote: Then set the same environment variables in your current shell and they should stick. Nope, .bash_history completely empty after a bunch of ls's. At least it didn't tell me to become root :o So if you do ls -l .bash* in your home directory, what's the output? I haven't been following this thread, but have you tried doing set -o history ? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
So if you do ls -l .bash* in your home directory, what's the output? I haven't been following this thread, but have you tried doing set -o history ? all academic now -- the pc just died :( Not a beep, no screen o/p. The green light on front of the box comes on for about 1/10 sec, fan turns a few degrees and thats IT! Tried another power supply -- no dice. Tried bypassing the on switch -- nope. Moved RAM to another slot -- nada. rere'd the 3V battery -- negative. I've never seen the like before. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
Try to adjust those variables: HISTFILE=/home/your_account/.bash_history HISTFILESIZE=500 HISTSIZE=500 HTH, noro Thanks noro. I had to run the above from root and sure enough, they were written into my home dir .bash_history, along with the exit command to get back to user-space. So I ran a series of ls's just to check but they don't appear. So what now? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
maxim wexler schreef: Try to adjust those variables: HISTFILE=/home/your_account/.bash_history HISTFILESIZE=500 HISTSIZE=500 HTH, noro Thanks noro. I had to run the above from root and sure enough, they were written into my home dir .bash_history, along with the exit command to get back to user-space. So I ran a series of ls's just to check but they don't appear. So what now? Umm, not that I actually know anything about this, but I find it hard to imagine that a file written by root wouldn't be owned by root and would not exclude the user from being able to write to it. Why did you have to create a user file as root (not saying you didn't have to, just asking why)? Holly -- gentoo-user@gentoo.org mailing list
RE: [gentoo-user] bash_history missing
Try to adjust those variables: HISTFILE=/home/your_account/.bash_history HISTFILESIZE=500 HISTSIZE=500 I had to run the above from root and sure enough, they were written into my home dir .bash_history, along with the exit command to get back to user-space. So I ran a series of ls's just to check but they don't appear. So what now? The environment variables only apply to the scope that they were set in. When you set them as root they only applied to the root session; exiting back to user space removed them. You want to delete the current .bash_history file as it is probably only writable by root. Then set the same environment variables in your current shell and they should stick. When they work add them to your .bashrc file. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
Why did you have to create a user file as root (not saying you didn't have to, just asking why)? Holly When I tried running HIST* etc as user I was told I had to be root. __ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- gentoo-user@gentoo.org mailing list
RE: [gentoo-user] bash_history missing
Then set the same environment variables in your current shell and they should stick. Nope, .bash_history completely empty after a bunch of ls's. At least it didn't tell me to become root :o Sell on Yahoo! Auctions no fees. Bid on great items. http://auctions.yahoo.com/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] bash_history missing
On Wed, Jul 06, 2005 at 02:06:50PM -0700, maxim wexler wrote: Then set the same environment variables in your current shell and they should stick. Nope, .bash_history completely empty after a bunch of ls's. At least it didn't tell me to become root :o Try exiting the session and log in again. AFAIK .bash_history doesn't get updated until the session closes. If it does get updated in real time, it would cause quite a bit of problem when, say, you have 5 xterms open and doing stuff in all of them, neh? W -- What was the self-sacrifice? I jettisoned half of a much loved and I think irreplaceable pair of shoes. Why was that self-sacrifice? Because they were mine! said Ford crossly. I think we have different value systems. Well mine's better. That's according to your... oh never mind. Sortir en Pantoufles: up 3 days, 22:00 -- gentoo-user@gentoo.org mailing list