SimonHampel Posted April 8, 2019 Share Posted April 8, 2019 I use cron tasks to execute scripts which use rsync to pull files from remote servers to my Unraid box for backup purposes. This is running natively on Unraid, not via a VM. I would like to have the system send me notifications or emails if something goes wrong in my scripts. In previous versions of Unraid, I have piped messages into mail, then when that was no longer available I used the notify command - but that no longer works either? What's the best way to send notifications or emails from the CLI now? Quote Link to comment
tr0910 Posted April 9, 2019 Share Posted April 9, 2019 My scripts continue to send emails as necessary. I'll send examples laterSent from my chisel, carved into granite Quote Link to comment
SimonHampel Posted April 9, 2019 Author Share Posted April 9, 2019 Ahh - I just found another post which used notify, but using the full path. I checked and it works! Turns out notify didn't disappear - it was just no longer in the path. /usr/local/emhttp/webGui/scripts/notify -i warning -s "rsync web1 failed" -d "/mnt/user/Backup/Logs/rsync/rsync.web1.20190410" Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.