Linux下飞信
来源:互联网 发布:百度数据研发部怎么样 编辑:程序博客网 时间:2024/05/22 16:05
- #!/bin/sh
- # define default value
- URL='https://fetionapi.appspot.com/api/'
- # your phone number
- FROM='13600000000'
- # your fetion password
- PW='password'
- # send sms to ...
- TO=$FROM
- # message
- MSG=''
- case $# in
- 1) MSG=$1
- ;;
- 2) MSG=$2
- TO=$1
- ;;
- 3) FROM=$1
- PW=$2
- TO=$FROM
- MSG=$3
- ;;
- 4) FROM=$1
- PW=$2
- TO=$3
- MSG=$4
- ;;
- *) echo "usage: $0 [from pw] [to] msg."
- exit 1
- ;;
- esac
- result=`curl -d "from=$FROM" -d "pw=$PW" -d "to=$TO" -d "msg=$MSG" "$URL" 2>/dev/null`
- case `echo $result | cut -c 1` in
- N) echo $result
- ;;
- esac
- Linux下飞信
- linux
- linux
- Linux
- Linux
- LINUX!
- Linux
- linux
- linux
- linux
- Linux
- linux
- linux
- linux
- linux
- Linux
- linux
- linux
- ASP.NET 2.0连接Oracle 10g
- 单例模式(Singleton)
- 毒蛇咬伤后的紧急处理
- 感恩的心
- oracle 10g基础
- Linux下飞信
- Orcale与Asp.net的端口冲突【魔乐视频 www.mldn.cn】
- 用Delphi画圆角Panel的方法
- C语言之#define用法
- 优化MyEclipse的启动速度和运行效率
- 开始写博
- 达到目标的方法
- C#连接Oracle 10g
- 引撒贝宁博客 2009-10-16 | 上海“钓鱼”案当事人首次接受电视媒体采访-------《今日说法》播出《打“黑”记》