Parent Directory | Revision Log
Since smstools doesn't have a locking mechanism for incoming files, create a event handler script that moves the file to another directory and make SmsToolTransceiver handle the messages from there.
1 | #!/bin/bash |
2 | # If using the SmsToolTransceiver |
3 | # please create the inbox folder, make it writable to smsd |
4 | # and install this script as eventhandler |
5 | |
6 | if [ "$1" == "RECEIVED" ] ; then |
7 | SOURCE="$2" |
8 | FILE=`basename $SOURCE` |
9 | DESTINATION="/var/spool/sms/inbox/$FILE" |
10 | mv "$SOURCE" "$DESTINATION" |
11 | fi |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.20 |