diff --git a/chat/seelog.sh b/chat/seelog.sh new file mode 100755 index 0000000..d4f00dd --- /dev/null +++ b/chat/seelog.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +path="/var/log/users" + +if [ "$1" = "root" ] || [ "$1" = "" ]; then +file=$(cat $HOME/.log/last.txt) +else +file=$(cat /home/$1/.log/last.txt) +fi + +tail -f $file