Skip to content

Instantly share code, notes, and snippets.

@filipsPL
Created January 10, 2020 08:55
Show Gist options
  • Save filipsPL/09752cbf732d0a6d7956986383aeda0e to your computer and use it in GitHub Desktop.
Save filipsPL/09752cbf732d0a6d7956986383aeda0e to your computer and use it in GitHub Desktop.
How to use kdialog from cron-started jobs.
#!/bin/bash
export DISPLAY=:0
kdialog --title "Borg backup done $(date +"%A %x")" --passivepopup "<pre>$(cat /home/user/backup.log)</pre>" 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment