capturing bash history

Smylers Smylers at stripey.com
Tue Jun 12 16:23:16 BST 2007


nigel at turbo10.com writes:

> 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'

I'd expect that:

  history 1

be faster than:

  history | tail -n 1

Simon


More information about the london.pm mailing list