From: Ian Jackson Date: Mon, 27 Jun 2016 13:24:37 +0000 (+0100) Subject: via-sms: use locking X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f3fd390fffabd9c1d44afae44753f105156cd135;p=post-pizza-notify.git via-sms: use locking --- diff --git a/.gitignore b/.gitignore index 87d8975..f2515c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *~ log-*.txt +.*.lock diff --git a/via-sms b/via-sms index 91f1881..e209774 100755 --- a/via-sms +++ b/via-sms @@ -7,4 +7,5 @@ set -e msg="$1" rcpt="$2" +with-lock-ex -w .sms.lock \ gammu sendsms TEXT "$rcpt" -text "$msg"