Apparently attachments are not allowed on this list, so here's the
script as text.
--
Matan Ziv-Av. [EMAIL PROTECTED]
#!/bin/sh
# This script uses micq to send sms.
#
# Trying to emulate sendsms behaviour, with the following changes:
# -n - no charset conversion.
# -f - third argument treated as a file name.
f=0
c=iso88598
while [ ${1:0:1} = "-" ] ; do
if [ $1 = -f ] ; then f=1 ; fi
if [ $1 = -l ] ; then c=iso88591 ; fi
if [ $1 = -h ] ; then c=iso88598 ; fi
if [ $1 = -n ] ; then unset c ; fi
if [ $1 = -u ] ; then shift ; fi
shift
done
if [ $# -ne 3 ] ; then exit 1 ; fi
n=$1
if grep -q ^alias\ $n ~/.sendsmsrc ; then
n=`grep ^alias\ $n ~/.sendsmsrc | cut -d" " -f 3`
echo alias $n
fi
if [ ${n:0:1} = 0 ] ; then n="+972"${n:1} ; fi
if [ ${n:0:1} != "+" ] ; then exit 2 ; fi
s=$2
if [ $f = 1 ] ; then m=`cat $3` ; else
if [ -z $s ] ; then m=$3 ; else m=$3" ("$2")" ; fi
fi
if [ -n $c ] ; then m=`echo $m | iconv -f $c -t utf8` ; fi
echo number: $n
echo sender: $s
echo message: $m
micq > sms.log 2>&1 &
sleep 7
echo sms $n $m > ~/.micq/remote-control
echo quit > ~/.micq/remote-control
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]