capturing bash history

Peter Corlett abuse at
Tue Jun 12 16:57:42 BST 2007

On Tue, Jun 12, 2007 at 03:47:20PM +0100, nigel at wrote:
> I'm going to give this a try and see if the performance is OK:
> PROMPT_COMMAND='history | tail -n 1 | /path/to/'
> If not, the fallback is to go for interleaving the history file and 
> slurping it in periodically.

Well, for performance, what you want is a full web service where your
various shell accounts can all register updates to the history as each line
is entered. At login the service can be queried for the latest aggregated
history file to install.


More information about the mailing list