[bash] Send console output as email

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22898
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[bash] Send console output as email

Post by rednoah »

send-email-log.sh is a universally useful little bash script, that takes an arbitrary command, executes that command, captures the console output, and then sends you a nicely formatted HTML email.

Usage:

Shell: Select all

send-email-log filebot -script fn:sysinfo
Install:

Shell: Select all

# Fetch script
curl -O https://raw.githubusercontent.com/filebot/plugins/master/bash/send-email-log.sh

# Make script executable
chmod +x send-email-log.sh

# Link script into the $PATH
ln -s $PWD/send-email-log.sh /usr/bin/send-email-log
Configure:

Shell: Select all

SMTP_USER="<username>@gmail.com"
SMTP_PASS="<password>"

Screenshot
:idea: Please read the FAQ and How to Request Help.
Post Reply