[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More Questions on smsd
From: |
Pawel Kot |
Subject: |
Re: More Questions on smsd |
Date: |
Thu, 05 Sep 2002 10:10:18 +0200 |
>>> address@hidden 5 September 2002 10:06:48 >>>
> Just another question that someone may have implemented on smsd. Basically,
> on reception of an sms, smsd writes the message to a database table inbox.
> This is great, but I was wondering if anyone could help me add a bit of code
> that would also fork an external program at time of reception. So basically,
> I would like smsd to insert the record into the inbox as before, but, if
> successful, I also want it to fork another program. I don't know enough
> about threads and the like under unix to know if it is same to fork an
> external program from within smsd.
Find the function where you handle the incoming sms and then just fork() and
execl() the program you want.
pkot