commit 023713871e2e0f4e449a95b4aca8b4aae2c2f8e1 parent c4db1b291f6586fd9897ce908de282073f66b173 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sun, 27 Jul 2014 18:53:07 +0200 +sms Diffstat:
sms | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/sms b/sms @@ -0,0 +1,12 @@ +#!/bin/bash + +# send SMS to Free Mobile phone +# http://www.freenews.fr/spip.php?article14817 + +USER="$1" +KEY="$2" +TEMP=`mktemp` +python -c "import sys, urllib as ul; print ul.quote_plus(sys.stdin.read())" > $TEMP +curl -k -I +'https://smsapi.free-mobile.fr/sendmsg?user='$USER'&pass='$KEY'&msg='`cat $TEMP` +rm -f $TEMP