NOTE (2021-01-13) Rewrote from a bash to gawk script.
An awk (Gawk) wrapper script for easier use of
signal-cli
Usage:
sig snd <name> "message": Send to a name not a number (set names in config file)sig rcv: Get messages, which are written to a log filesig log: Read the logs more easily (to see receipts and read-receipts)sig ids: Check the phone numbers you have keys forsig num: Check the phone numbers in your config filesig ckn <num>: Test if<num>(prefix with+) using Signalsig cfg: Edit config filesig cli: Showsignal-cliusagesig new: Show the most recent new messages and confirmationssig cnv <name>: Display a conversation:
Note (2021-01-21): signal-cli seems not to be able to
fully handle
Signal’s version 2 groups; action gnu will probably fail. Actions
gls, gad, glv still work on version 1 groups. See usage by just
typing sig.
Also included: checksig a script to execute sig rcv and notify you via
send-notify; run it as a cron job.
- Make the scripts executable (
chmod u+x sig; chmod u+x checksig) - Scripts and
signal-climust be in the shell’s$PATH - Make sure
scw_config.awkis in a directory present in environment variable$AWKPATH(set in.bash_profile, etc) - (Optional) Add
checksigto yourcrontabfile. (AWKPATH and thesigpath will need to be set for a non-user). E.g.:
0,10,20,30,40,50 * * * * AWKPATH=/home/foo/awklib /home/foo/bin/checksig /home/foo/bin/sig
Then edit scw_config.awk to add short names for your numbers.