I was looking to get this setup on my Mac, but it appears that the HISTTIMEFORMAT is a bash 3.0+ feature and my Mac OS X 10.4 only has 2.0 by default.
http://www.freelinuxcdrom.com/LDP/LDP/abs/html/histcommands.html ~ tim$ bash --version GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin8.0) Copyright (C) 2002 Free Software Foundation, Inc. I guess a port is available here, http://bash.darwinports.com/, but I haven't tried that yet. Anyway, something to consider for the docs. Thanks, Tim On 8/20/05, Mike Paulding <[EMAIL PROTECTED]> wrote: > Excellent news, Cedric. That adds a whole new user base for our CLI sensor. > > I will work on updating the documentation. > > Thanks, > Mike > > > (Cedric) Qin ZHANG wrote: > > > Hi, > > > > I was just reading bash documentation, and realized that our command > > line invocation sensor can be used with BASH. > > > > The problem we encountered was that bash history does not contain a > > time stamp field. It turns out that there is a bash shell variable > > that controls the time stamp setting. You can try to set > > HISTTIMEFORMAT='%H:%M:%S ' > > and see what happens when you type 'history'. > > > > The format string is documented in <time.h> strftime() function. It > > can be changed to match csh time stamp format. So what we actually > > need is just some extra user documentation for our sensor to work with > > bash. > > > > Cheers, > > > > Cedric > > >
