#!/bin/bash
# check.sh — Quick status snapshot for a running sync
#
# Shows active processes, yt-dlp jobs, disk usage, tmp folder contents,
# and the tail of run.log. Run from the scripts/ directory during a sync.

echo "running run.sh jobs:"
echo "--------------------"
#pstree -apl  $(pidof cron)
pstree -apl ubuntu
echo ""
ps -lf $(pidof -x youtube-dl)
echo ""
df -BG /home
echo ""
echo ""
echo  "tmp folder:"
echo "-------------"
ls tmp -l
echo ""
echo ""
echo "../logs/run.log:"
echo "------------------"
tail ../logs/run.log

