First thing to check is that the command syntax runs in the foreground. Also remember that jobs run from cron don't get the same environment as you have when logged in. There might be a path issue somewhere.
Cathy -- Cathy L. Smith IT Engineer Pacific Northwest National Laboratory Operated by Battelle for the U.S. Department of Energy Phone: 509.375.2687 Fax: 509.375.4399 Email: cathy.sm...@pnnl.gov -----Original Message----- From: plug-boun...@pdxlinux.org <plug-boun...@pdxlinux.org> On Behalf Of John Jason Jordan Sent: Monday, January 27, 2020 10:56 AM To: PLUG <p...@lists.pdxlinux.org> Subject: [PLUG] Make cron send an e-mail upon completion I've read online all kinds of advice, but none succeed. The closest I've gotten is: # <rsync command here> | mail -s "Home is backed up" myusern...@gmx.com Which gives the error message 'mail: cannot send message: Broken pipe.' I have lots of plumbing tools and experience using them for fixing houses, but this message is beyond me. How do I fix a broken Linux pipe? _______________________________________________ PLUG mailing list PLUG@pdxlinux.org https://protect2.fireeye.com/v1/url?k=7a60856f-26d5bba0-7a60af7a-0cc47adc5e60-ea9bccb9b4c0caae&q=1&e=df460f8a-e5b9-4e32-a360-cc51ea54d95b&u=http%3A%2F%2Flists.pdxlinux.org%2Fmailman%2Flistinfo%2Fplug _______________________________________________ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug