From 5bb5d11f82ef715ec5696214964dbd9f458c9ba9 Mon Sep 17 00:00:00 2001 From: dig Date: Sun, 26 Sep 2021 15:43:34 +0200 Subject: [PATCH] Added poka's seelog shell chat --- chat/seelog.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 chat/seelog.sh 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