Skip to content

Instantly share code, notes, and snippets.

@virtadpt
Forked from n8fr8/signal-batch.sh
Created February 14, 2017 21:19
Show Gist options
  • Save virtadpt/9beed29069e3101187ed15fc02f14884 to your computer and use it in GitHub Desktop.
Save virtadpt/9beed29069e3101187ed15fc02f14884 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
if [ "$1" != "" ]; then
sBatchList=""
sBatchMessage="$3"
while IFS=, read col1 col2
do
sBatchList="$sBatchList $col1"
done < $2
echo sending batch message to: $sBatchList
sh ./signal-cli -u "$1" send -m "$sBatchMessage" $sBatchList
else
echo \\nThis script requires \"Signal Command Line Interface\"
echo More info @ https://github.com/AsamK/signal-cli
echo Downloads @ https://github.com/AsamK/signal-cli/releases
echo Once downloaded and installed, please place this script in the "bin" directory\\n
echo usage: ./signal-batch yourSignalNumber yourBatchList \"Your message goes here!\"
echo example: ./signal-batch +12125551212 mygrouplist.txt \"This is the broadcast message you requested!\"\\n
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment