I've been looking around for awhile trying to figure out how to do what seems like a very simple thing:
I have a Bash script that runs rsync and fmirror for backups. It's only a few lines long (it just has the commands to run the backup). When I run script in a console window, I see it working away, and I see any errors it encounters. I want to email myself this output. I've tried various forms of "mail ..." in the script, but nothing I've tried works so far. I think I just don't know enough.
Any suggestions?
Thanks.
I have a Bash script that runs rsync and fmirror for backups. It's only a few lines long (it just has the commands to run the backup). When I run script in a console window, I see it working away, and I see any errors it encounters. I want to email myself this output. I've tried various forms of "mail ..." in the script, but nothing I've tried works so far. I think I just don't know enough.
Any suggestions?
Thanks.