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

Reply via email to