mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

sms (314B)


      1 #!/bin/bash
      2 
      3 # send SMS to Free Mobile phone
      4 # http://www.freenews.fr/spip.php?article14817
      5 
      6 USER="$1"
      7 KEY="$2"
      8 TEMP=`mktemp`
      9 python -c "import sys, urllib as ul; print ul.quote_plus(sys.stdin.read())" > $TEMP
     10 curl -k -I 'https://smsapi.free-mobile.fr/sendmsg?user='$USER'&pass='$KEY'&msg='`cat $TEMP`
     11 rm -f $TEMP