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. Sun Mar 07, 2021 05:17
SMSTools3 Community » Help and support Bottom

regular_run missing statfile and postrun scripts processed strangely.

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Oct 2020
Location: sjoyos, Indonesia
Operating system name and version: 5.4.0-51-generic #56-Ubuntu
Version of smsd: 3.1.21
Smsd installed from: sources / package repository / from elsewhere...
Name and model of a modem / phone: WAVECOM MODEM, MULTIBAND 900E 1800
Interface: serial / USB / some adapter...

I have multiport modem which contain 8 ports, i can successfully install the software and make the hardware running in my system.
i tried to configure and make some adjustment to my requirements, but seems like i cannot make it works perfectly, thats why i need some help from people who might know on how can i accomplish regarding from the below requirements:

a. when a device/modem is initialize, i need to have some information when its open successfully and ready to operating so i can executing my custom command when this event occured.
b. when a device/modem is opened successfully and ready, i need to run USSD Command to get simcard number(MSISDN and along with device name) and store it somewhere in database.
c. when a device is suspended, means changing simcard on the fly i need to have an event so i can record the new attached simcard to database so i do not loose information.
d. when a device is on error occur like cannot register on the network and still not ready to operating, i need to have this information too.

the point from the whole thing is, i need to store all information about which port or number in the devices is on ready 100% to accepting some jobs (sending/receiving sms).
what i had tried so far is, trying to make regular_run but failed to get statfile(it got deleted so quickly by the system and i do not know why), the current system just recording the output from ussd command in logfile(if defined, if not then i loose the response).
below is my regular_run configuration.



i'm creating the directory of scripts and setting the permission and ownership to the same user as smstools running from.


i had tried to creating cmdfile from below:


and i can assure that it exists on file system.



rr_logfile_GSM1 contain all ussd command response.


statfile is missing, stats directory is empty, but showing last modified date is the latest one. means the file got deleted.



i have read the documentation which stated
Quote
regular_run_statfile = filename
Default value: not in use.
If defined, results of commands are written to this file. Old file is cleared before each run. Since version 3.1.16 special keyword modemname can be used, it's replaced with a name of modem.
, perhaps there is another run which causing the old file deleted. what makes me confused i never make any cmdfile. another thing which processed strangely postrun scripts running as much as device count even if i only make one cmdfile script.i am attaching the error too.



from postrun error message i concluding if the scripts have to be in somewhere in web service and not as file script.
rr_postrun.sh contain just a simple code to writing param $1,$2.


Please help me!

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
sjoyos wrote
rr_postrun.sh contain just a simple code to writing param $1,$2.



Sorry for the late answer.

If this issue is still active, please note that there should not be spaces around the = sign. With the spaces, bash would assume POST to be a command and then pass = and $1 ("POST_RUN") as argument. It's /usr/bin/POST which says that "Can't connect to POST_RUN:80 (Temporary failure in name resolution)".

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.