▲ 17 ▼ Keep a "latest" symlink for timestamped cron logs (programming.dev) submitted 1 year ago by CoderSupreme@programming.dev to c/commandline@programming.dev 4 comments fedilink hide all child comments 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?
[–] CoderSupreme@programming.dev [S] 1 point 1 year ago Communities / Forums r/commandline r/linuxquestions Unix & Linux Stack Exchange Dev.to Linux Discord communities Resources / Tutorials ArchWiki LinuxCommand.org TLDP (The Linux Documentation Project) Books like The Linux Command Line permalink fedilink source