Keep a "latest" symlink for timestamped cron logs
Keep a "latest" symlink for timestamped cron logs
Use ln -sf to update a symlink after each cron run:
0 */8 * * * TIMESTAMP=$(date +\%Y-\%m-\%dT\%H;\%M;\%S) && LOG="$HOME/logs/${TIMESTAMP}_job.log" && /path/to/script.sh >> "$LOG" 2>&1 && ln -sf "$LOG" "$HOME/logs/latest_job.log"
Any active communities where I can learn more cool things like this?