SUSE 10:
3.1.14:
SOURCES: sources / package repository / from elsewhere...
MOXA 110:
ttyUSB0: serial / USB / some adapter...
If you are asking for support, please fill out the information above. Delete this line. Thank you.
send_sms()
{
FILE=`mktemp /tmp/send_XXXXXX`
echo "To: $FROM" > $FILE
echo "" >> $FILE
echo -n "$2" >> $FILE
FILE2=`mktemp /var/spool/sms/outgoing/send_XXXXXX`
mv $FILE $FILE2
}
if [ "$1" = "RECEIVED" ]; then
FROM=`formail -zx From: < $2`
TEXT=`sed -e '1,/^$/ d' < "$2"`
grep -R $TEXT /usr/local/bin/* > /dev/null
if test $? = 0
then
exit
else
send_sms "$FROM" "Request is not macthed with Criteria"
fi
fi
exit 0