I have a VPS running Debian 9 GNU/Linux that transcodes mp4 files, because it's a cheap single-core server it might take several hours. I want to send an email to myself when it completes with the output from ffmpeg.
I have tried
(ffmpeg -i input.mp4 -acodec copy -vcodec copy -y output.mp4 >> ffmpeg.log; cat ffmpeg.log) | mail -s "FFMPEG COMPLETE" email@me.net
But that left me with the email sending immediatly without body.
(my SMTP client is Unix Sendmail)