On Thu, 3 Jan 2002, Brian Chabot <[EMAIL PROTECTED]> wrote: > > Is there an easy way to tee the $HISTFILE to more than one location? > > What I want is a mirror of .bash_history stored elsewhere in case the
It's probably not be the best way to proceed, but I have an LD_PRELOAD hack that tees writing to /dev/dsp to a temp file (i.e. to capture raw audio). I imagine it could be used to tee writes to ~/.bash_history. It's not clear to me one would want to interpose something as important /bin/bash via LD_PRELOAD... But you asked for easy, other options would seem to require modifying bash and/or kernel source. Another angle to consider is to turn on accounting. I've never used accouting (perhaps I played with it once Solaris long ago...) but I believe the system call is acct(2). ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************
