SMS Server Tools 3
This site is hosted by
Basic information:
Additional information:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

Custom Search

 Visitor locations
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Tue Mar 09, 2021 03:13
SMSTools3 Community » Help and support Bottom

Run send sms before script run

Login and Post Reply

Page:  1

Author Post
Oct 2012
Location: Argentina
Operating system name and version: Windows server 2008 + install smsd how service
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: mc35i
Interface: com -> usb

Good afternoon. I'm sorry for my eng, use translate. I have some exemplary script in bash:
if [ "$1" = "RECEIVED" ]; then
sendsms +number "Start"
->sleep 30
-> here some on bash code, witch need ~10min to complete
sendsms +number "Done"

If i run, like:
/home/my/script RECEIVED /var/spool/sms/incoming/GSM1.123fasqw
I have:
1 - sell sms on my phone
2 - next run execution bash script
3 - sell sms "Done"

If i send sms from my phone to modem, i have this:
1 - forward before script has completed
2 - take 2 sms: Start and Done...

Why is this happening? Thanks.

Apr 2011
Location: Kupchino, Russian Federation
If you use the same modem for receiving and sending its handler may be blocked until the script completion and because of that the handler doesn't check outgoing queue. (Just a guess. I haven't taken a look at the source code.)

After the script completion the modem handler finds both two messages in outgoing queue and sends them immediately.

If it is the case one probable solution can be to spawn a background job from your script, like the following:

« Last edit by unterwulf on Tue Oct 16, 2012 08:11, 102 months ago. »

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.