/[projects]/smsdaemon/scripts/smstoolshelper.sh
ViewVC logotype

Contents of /smsdaemon/scripts/smstoolshelper.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 167 - (show annotations) (download) (as text)
Tue Dec 9 19:42:45 2008 UTC (15 years, 5 months ago) by torben
File MIME type: application/x-sh
File size: 295 byte(s)
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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20