Obsolete script for SMS group multicasting through m1d
authorshort <>
Tue, 10 Jul 2001 18:24:49 +0000 (18:24 +0000)
committershort <>
Tue, 10 Jul 2001 18:24:49 +0000 (18:24 +0000)
bin/smshelp [new file with mode: 0755]

diff --git a/bin/smshelp b/bin/smshelp
new file mode 100755 (executable)
index 0000000..1027a13
--- /dev/null
@@ -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'