Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • thank you for your answer but for some reason nothing is written in the smslog.dat with the second option which I would prefer. Commented Feb 16, 2018 at 14:51
  • @lucian If you add echo "$SMS_MESSAGES" at the top before the loop, what does it print? Commented Feb 16, 2018 at 14:54
  • when i send a message I get in the gammu log file the correct output: Subprocess output: 1. This means that gammu has launched the script and processed it Commented Feb 16, 2018 at 14:56
  • @lucian I have just now fixed two syntax errors (missing " in two places). Sorry about that, try again. Commented Feb 16, 2018 at 14:59
  • 1
    you were right! full path to the smslog.dat file was the answer! thank you so much for your help! Commented Feb 16, 2018 at 15:21