From: short <> Date: Tue, 10 Jul 2001 18:24:49 +0000 (+0000) Subject: Obsolete script for SMS group multicasting through m1d X-Git-Tag: rh71~73 X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=c8c4cd6ab3ea2e197519c66f2c3115a33fc7088a;hp=8f76431526be92a2a804f8f6164e3bcd4e102ee9 Obsolete script for SMS group multicasting through m1d --- diff --git a/bin/smshelp b/bin/smshelp new file mode 100755 index 0000000..1027a13 --- /dev/null +++ b/bin/smshelp @@ -0,0 +1,20 @@ +#! /bin/sh +t=/tmp/smshelp.$$ +trap "rm -f $t $t.1 $t.2" EXIT +cat >$t.1 +(head -qc 155 <$t.1|tr '\r\n' ' '|sed -e 's/:/\\:/g' -e 's/"/\\\\"/g';echo '"\r:') >$t +tail -c +156 <$t.1 >$t.2 +if [ -s "$t.2" ];then + echo "-----------------------------------------------------------------------" + echo "MESSAGE TOO LONG! CUT WAS AT:" + cat $t.2 + echo + exit 1 + fi +(echo 'TOP_W:v1.0:ttermin:' +if [ "$1" = h -o -z "$1" ];then echo -n 'tsmsend 0603431329,"';cat $t;fi +if [ "$1" = l -o -z "$1" ];then echo -n 'tsmsend 0603457332,"';cat $t;fi +if [ "$1" = t -o -z "$1" ];then echo -n 'tsmsend 0603223050,"';cat $t;fi +echo 'tquit\r:' +sleep 5 +)|ssh -v gps.geoinvest.cz 'exec ./src/m1d/static/gateway -le0n/dev/null'