⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gsmsmsspool

📁 开发手机AT指令的源码
💻
字号:
#! /bin/sh## /usr/bin/gsmsmsspool: Queues SMS for sending## written by Matthias Goebl <matthias.goebl@goebl.net>SPOOLDIR=/var/spool/smsPRIORITIES=3test -r /etc/default/gsm-utils && . /etc/default/gsm-utilsif [ -z "$1" ]; then  echo "Usage: gsmsmsspool NUMBER [MESSAGE]"  exit 1fi# the default priority can be overridden by the environment variable GSMSMS_PRIORITYpriority=$PRIORITIEStest -n "$GSMSMS_PRIORITY" && priority="$GSMSMS_PRIORITY"# the default reply email address can be overridden by the environment variable GSMSMS_NOTIFYnotify=`id -un`		# default notifytest -n "$GSMSMS_NOTIFY" && notify="$GSMSMS_NOTIFY"tmpfile="$SPOOLDIR/tmp/`date +%s`.$$"umask 022echo "$1	$notify" > "$tmpfile"if [ -n "$2" ]; then  echo -n "$2" | head -c 160 >> "$tmpfile"else  head -c 160 >> "$tmpfile"fiif [ "`id -u`" = "0" ]; then  chown gsmsms:gsmsms "$tmpfile"fimv "$tmpfile" "$SPOOLDIR/queue$priority/"

⌨️ 快捷键说明

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