ShadowArch/UserScripts/logged-shell

8 lines
215 B
Plaintext
Raw Normal View History

2016-11-09 22:25:00 -06:00
#!/bin/bash
export SHELL=/bin/bash
export LOGFILE="/var/log/guest_log/$(/usr/bin/whoami)-$(date +%F-%R).log"
env > $LOGFILE
exec /bin/sh -c "script -a -q -f $LOGFILE"
#/bin/bash -c "echo /usr/bin/logged-shell"
exit