Viewing: watch_dashboards.sh
#!/bin/bash LOG_FILE="/home/grupo692/cron_debug.log" while true; do if ! pgrep -f "streamlit" > /dev/null; then echo "[$(date '+%F %T')] Dashboards não estão rodando. Reiniciando..." >> "$LOG_FILE" /home/grupo692/start_dashboards.sh >> "$LOG_FILE" 2>&1 fi sleep 60 done
Return