SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu May 23, 2024 03:09
SMSTools3 Community » Help and support Bottom

[answered] Script Issuse

  This topic is locked

Page:  1

Author Post
Member
Registered:
Nov 2010
Location: Sindh, Pakistan
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

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Advanced Bash-Scripting Guide

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.