diff --git a/sendoutputasemail-llama.sh b/sendoutputasemail-llama.sh new file mode 100644 index 0000000..b3204fe --- /dev/null +++ b/sendoutputasemail-llama.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Display a string of text +echo "This is a test email from a bash script." +echo "-------------------------------------" + +# Get the output of the script using command substitution +OUTPUT=$(cat /dev/null) + +# Send the output as an email using mailx (or your preferred MTA) +mail -s "Test Email from Bash Script" recipient@example.com << EOF +$OUTPUT +EOF + +exit 0 \ No newline at end of file diff --git a/sendoutputasemail.sh b/sendoutputasemail.sh deleted file mode 100644 index e69de29..0000000