#记录
vi /etc/profile
DATE=`date +%Y%m%d`
script -q -f -a -t 2>>/var/log/his/$USER-$DATE\\.time /var/log/his/$USER-$DATE\\.his
if [ "$SHLVL" = 1 ]; then
exit
fi
#回放
scriptreplay ldapuser01-20170329.time ldapuser01-20170329.his
#记录
vi /etc/profile
DATE=`date +%Y%m%d`
script -q -f -a -t 2>>/var/log/his/$USER-$DATE\\.time /var/log/his/$USER-$DATE\\.his
if [ "$SHLVL" = 1 ]; then
exit
fi
#回放
scriptreplay ldapuser01-20170329.time ldapuser01-20170329.his