history log
and posted in Apache

local1.notice /var/log/historycmd.log

One Comment so far:

  1. master says:

    function history_to_syslog {
    declare command
    remoteaddr=”`who am i`”
    command=$(fc -ln -0)
    if [ “$command” != “$old_command” ]; then
    logger -p local1.notice -t bash -i ? “$USER : $remoteaddr” : “$command”
    fi
    old_command=$command
    }
    trap history_to_syslog DEBUG

Leave your Comment

Your email address will not be published. Required fields are marked *