You're not telling "mail" to mail anything. Since you're no longer piping you need to redirect something to STDIN.
mail -s "my subject" $recipient <foo.blarg.barf On Mon, Jan 27, 2020 at 3:45 PM John Jason Jordan <[email protected]> wrote: > On Mon, 27 Jan 2020 13:41:05 -0800 > John Jason Jordan <[email protected]> dijo: > > >>> mail: cannot send message: Process exited with a non-zero status > > Just to add something that I discovered: That error message is from > mail, not from rsync. I get the same error message when I just try to > send an e-mail from the command line directly without even running the > rsync script. > > Also, I have mail and mailutils installed, but not much more. I want to > keep this as simple as possible. > > I have used Claws-Mail for years and it has never failed me. I have > plenty of software installed on this computer; I don't need or want > additional mail clients. If I have to set up a complete mail server > just to get a bash script to send me an e-mail, then better I should > just give up the idea and find an easier way to get the rsync cron job > script to notify me that it worked or didn't work. > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
