aboutsummaryrefslogtreecommitdiff
path: root/bin/with-email
diff options
context:
space:
mode:
Diffstat (limited to 'bin/with-email')
-rwxr-xr-xbin/with-email15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/with-email b/bin/with-email
index 9d6326b..dc2a022 100755
--- a/bin/with-email
+++ b/bin/with-email
@@ -17,6 +17,21 @@ help() {
-h, --help show this message
COMMAND the command to be wrapped
+
+
+ Executes COMMAND and send all of its output via email
+ to eu@euandre.org.
+
+
+ Examples:
+
+ Run a script and use the default subject:
+
+ $ with-email -- ./script
+
+ Run a command and use a custom subject:
+
+ $ with-email -s 'CRONJOB' echo 123
EOF
}