Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • I supplied just a portion of the script. The script is running Borg Backups, with a disk-space check thrown in. I'm not trying to notify-send the disk check - i'm trying to notify-send the Borg backup portion. But when i include the 2>&1, the RC of the Borg portion of the script is ignored when passing the $SUCCESS to notify-send. As long as systemd completes, it passes as successful, even if Borg crashed and burned. If i do not include the 2>&1 then the disk-space info is not sent to journalctl - but the $SUCCESS portion correctly outputs (success or fail) depending on how Borg went. Commented Dec 30, 2019 at 20:57