capturing bash history

Peter Corlett abuse at cabal.org.uk
Tue Jun 12 16:57:42 BST 2007


On Tue, Jun 12, 2007 at 03:47:20PM +0100, nigel at turbo10.com wrote:
[...]
> I'm going to give this a try and see if the performance is OK:
> PROMPT_COMMAND='history | tail -n 1 | /path/to/local_pperl_sensor.pl'
> 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.

*gd&r*



More information about the london.pm mailing list