Am 2008-09-16 20:44:26, schrieb Baurzhan Ismagulov: > Well, I have worse issues: my .bash_history gets truncated after it is > about 2 MiB :) . But I'm not sure whether bash locks the file. But > that doesn't mean this is not doable.
BaSH does not lock the file, but it read it into the memory and append new things there if you now leave the bash, it is writen back to the bash_history file. If you realy war parallel writes from bash, you have to write a function and put it into your .bash_login which WRITE out the bash_history in intervals and APPEND the contents. Please read "man bash" hot to do this. The appropriated command are availlable... and of course, the function has to be executed at BaSH startup and put into the bachground WITHOUT DISOWNing the process. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature