FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+2 votes
1,122 views 2 comments
by
I want to send a sms with multiple lines. So I tested some commands:

gsmctl -S -s "number textline1\ntextline2"
gsmctl -S -s "number textline1\r\ntextline2"
gsmctl -S -s "number textline1<br>textline2"

Unfortunately without success...

Is it possible to send a line feed?

2 Answers

+1 vote
by anonymous
Try

gsmctl -Ss "number $(printf 'text\ntext2')"
Best answer
by
Thank you for the quick reply! This is the solution for me!
0 votes
by anonymous

Hello,

Yes, that it possible.

1. First write your desired text to any variable, while using \n as new line symbols.

  • Syntax: a=$'<your text>'
  • Example: a=$'Hello\nworld'

2. Use gsmctl -S -s "<number> $a" command to send previously written text.

by
I need the following text where each event arrives in an email on a line of its own but the text just appears in the email in one long line.

ideally laid out like this can it be done:

%rn - Router name    

%ts - Time stamp   

%et - Event type    

%ss - Signal strength    

%ai - Analog input   

%li - LAN IP   

%wi - WAN IP address       

Voltage between 11.5v - 14vPower has been restored.