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. Tue Apr 16, 2024 20:36
SMSTools3 Community » Help and support Bottom

[solved] EVENTHANDLER issues Raspberrypi PYTHON

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Dec 2016
Location: Toronto, Canada
RASPBERRYPI:
Version of smsd:
Smsd installed from: sources / package repository / from elsewhere...
Name and model of a modem / phone:
Interface: serial / USB / some adapter...


HI

I am having some issues getting the eventhandler to run a simple python script when an SMS is received (comes into the incoming box)

I am running SMStools on a raspberrypi

I have the modem part working and can receive SMS messages without issues

The problem I ma having is that when I try to get the eventhandler to run a simple python script, nothing happens.
I can see the SMS come into the incoming box.

My eventhandler statement looks like this under the GSM1 header

eventhandler = /usr/local/bin/tester.py (Tester is the name of the python program)

The python program is

#! /usr/bin/env python
file = open('myfile.dat', 'w+')



I just want to try opening an new file called myfile.dat when a SMS comes into the incoming box.

I am really new to this so I don't know what I am doing wrong

The tester.py script runs when I type sudo python /usr/local/bin/tester.py so I know the script works

Any ideas what I am missing? DO I have permission issues?

Thanks in advance

Tom

Member
Registered:
Dec 2016
Location: Toronto, Canada
Topic owner
Hi There

I figured out my problem, it was a permissions issues

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.