I have to write a bash script to check the files and log for changes to scheduled backups the night before and email them to an IT Administrator
But I am having a problem sending an email from the NAS via bash script.
This is what I have tried without success
$ /usr/sbin/send_gen_mail -m "Hello World" -s "Test" -r "myemail@address"
The server responds with nothing. did it work? I don’t know. there is nothing in the logs either.
$ mutt -s "Test Email" myemail@address Error opening terminal: xterm-256color.
I have no clue how to source that
Perhaps I have to install the ubuntu image via docker to get something working. I have the EX4100 series so I need to get the arm7 version
# docker pull armv7/armhf-ubuntu:14.04 14.04: Pulling from armv7/armhf-ubuntu c11f1521cacf: Pull complete 0b7eccc41093: Pull complete cb9e07433459: Pull complete b89aa9566aaf: Pull complete 6f21efd1e2a9: Already exists Digest: sha256:fd9eeb78c32556a8139e1c803518d01561193774f7af66060c6a4deb096582dc Status: Downloaded newer image for armv7/armhf-ubuntu:14.04 # docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu 14.04 35b394a6f7a2 3 days ago 187.9 MB hello-world latest f0cb9bdcaa69 3 months ago 1.848 kB armv7/armhf-ubuntu 14.04 6f21efd1e2a9 19 months ago 238.8 MB
Now what? All I need to do is send an email within a Bash script.