sendsms

来自「GSM猫管理程序」· 代码 · 共 29 行

TXT
29
字号
#!/bin/sh# This script send a text sms at the command line by creating# a sms file in the outgoing queue.# I use it for testing.# $1 is the destination phone number# $2 is the message text# if you leave $2 or both empty, the script will ask youDEST=$1TEXT=$2if [ -z "$DEST" ]; then  printf "Destination: "  read DESTfiif [ -z "$TEXT" ]; then  printf "Text: "  read TEXTfiFILE=`mktemp /var/spool/sms/outgoing/send_XXXXXX`echo "To: $DEST" >> $FILEecho "" >> $FILEecho -n "$TEXT" >> $FILE

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?