Added poka's seelog shell chat

This commit is contained in:
dig 2021-09-26 15:43:34 +02:00
parent a1b92ff78a
commit 5bb5d11f82
1 changed files with 11 additions and 0 deletions

11
chat/seelog.sh Executable file
View File

@ -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