|
Hans Haufe |
With centos 8 its default in cockpit its already in centos 7. All we need is to add it to /etc/profile example:
---------------------------------
#Script to Record the User's Terminal Session
if [ "x$session_record" = "x" ]
then
timestamp=`date "+?.%m.%Y_%H:%M"`
output=/var/log/session/session.$USER.$$.$timestamp
session_record=started
export session_record
script -t -f -q 2>${output}.timing $output
exit
fi
--------------------------------------
And a way to playback logs.
github.com/h43z/scriptreplayjs
is a good candidate for that ?