—– Original Message —–
From: “Benjamin Povirk”
Sent: Thursday, April 06, 2006 1:28 AM
Subject: Re: gammu –smsd / debian sid problem –
> ajajaj, it is me who needs to apologise because I
didn’t check with
> FILES option earlier.
> on my box, FILES option aborts with the same error
code (glibc free())
> and the same pointer.
> if FILES would work, I would be very interested in
your script since
> there is a pool in my vilage on this sat.
> it is only a dream to setup smsd till then, so I’m
working on php
> script that will shell_exec gammu and parse sms into
> Regarding pool in my vilage…I live near capital of
Slovenia and my
> friends are counting on me (local linux man) to
handle sms-es… 🙂
> sory, gone out of the topic, well, let me know if
you are interested
> on that php script. Probably, it will be finished on
sat 5 min to pool
> On 4/5/06, Tom Lee
>> Apologies if you are the person I gave wrong info
to earlier regarding
>> and mysql. Unfortunately, I remain uninformed
about that integration.
>> However, I have had luck using smsd’s FILES mode
and monitoring the spool
>> directories with Gamin, then launching a script
when new files appear.
>> could get their content into your database that
way, if you are unable to
>> make the MySQL integration work properly.
>> The following doesn’t have any database handling —
it actually calls a
>> script from Python (I would never have done this,
except the Perl script
>> already written and I couldn’t get Perl’s Gamin
module to compile). You
>> could easily perform the database operations in
Python or the launched
>> script, of course.
>> This is adapted from the Gamin/Python example code.
I’ll be daemonizing
>> later this week. Let me know if that code would be
useful to you and I
>> send it along.
>> import gamin
>> import time
>> import os
>> dir = “/var/spool/sms/inbox”
>> def callback(path, event):
>> print “Got callback: %s, %s” % (path, event)
>> # only fire the script for new files (5) or
found files (at
>> startup —
>> if((event==5) or (event==8)):
>> # call a perl script, passing it the path
to the new SMS file as
>> single parameter.
>> stdout_handle =
>> ” + dir + “/” + path),”r”)
>> # print the script’s output to the screen
>> output = stdout_handle.read()
>> print output
>> # NOTE: as written, files are not deleted
and will accumulate in
>> spool directory
>> mon = gamin.WatchMonitor()
>> mon.watch_directory(dir, callback)
>> ret = mon.event_pending()
>> if ret > 0:
>> ret = mon.handle_one_event()
>> ret = mon.handle_events()
>> del mon
>> On 4/5/06, Benjamin Povirk
>> > Hi.
>> > My name is Benjamin, 24, linux newby from
>> > I run Linux katra 2.6.8-2-386 #1 Tue Aug 16
12:46:35 UTC 2005 i686
>> > GNU/Linux debian sid box
>> > overview:
>> > I compiled gammu source found on
http://debian.cihar.com/ (many times
>> > now…)
>> > ./configure works…
>> > regarding mysql
>> > checking mysql/mysql.h usability… yes
>> > checking mysql/mysql.h presence… yes
>> > checking for mysql/mysql.h… yes
>> > MySQL SMS plugin (requires mysql) –
>> > make install with gcc, gcc3.3 and gcc-4.0 works
so gammu is ready to
>> > use
>> > for common practice (eg. gammu ..identify,
>> > problem:
>> > gammu –smsd MYSQL /root/.gammurc_SMSD
>> > keeps throwing
>> > *** glibc detected *** free(): invalid pointer:
>> > Aborted
>> > no matter with which gcc was compiled, pointer
HEX stays the same.
>> > If someone can help me with this problem and
needs additional files,
>> > outputs, I am willing to provide that material
(but this mail is long
>> > enough).
>> > Thank you and regards,
>> > Benjamin
>> > —
>> > _________________________________________
>> > I’m not a comlpete idoit – some prats are
> I’m not a comlpete idoit – some prats are missnig.
> This SF.Net email is sponsored by xPML, a
> that extends applications into web and mobile media.
Attend the live
> and join the prime developer group breaking into
this new coding
> Gammu-users mailing list –