55d8253
M Inspire, M Squadron, M PreciousDream, M Caverun - ddnet-maps uuid="$(generate_uuid)"
current_file="$(get_latest_logfile)"
show_latest_log "$follow" "$logpath" --id="$uuid" &
while true
do
if [ "$current_file" != "$(get_latest_logfile)" ]
then
pkill -f "id=$uuid"
pkill -f "tail.*$current_file"
current_file="$(get_latest_logfile)"
show_latest_log "$follow" "$logpath" --id="$uuid" &
fi
sleep 1
done
(while true; do tail -f $file; file=my_next_file; done) | python3 my_python_script.py
tail -f log.txt > /proc/$tail_pid/fd/0
that feels wrong