diff --git a/send.sh b/send.sh new file mode 100755 index 0000000..e8992c6 --- /dev/null +++ b/send.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Check if both arguments are provided +if [ $# -ne 2 ]; then + echo "Usage: send " + exit 1 +fi + +# Assign arguments to variables +to_address=$1 +filename=$2 + +# Change directory to /home/gemini/misfin/ +cd /home/gemini/misfin/ || exit 1 + +# Get the content of the message from the file +message_content=$(cat "$filename") + +# Run the python3 command +python3 -m misfin send-as mail_satch.pem "$to_address" "$message_content"