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. Thu Apr 25, 2024 22:00
SMSTools3 Community » Help and support Bottom

SMS with LineFeed from shell script

Login and Post Reply

Page:  1

Author Post
Member
Registered:
May 2009
Location: Italy
Operating system name and version: Debian 7.7
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem / phone: Huawei USB Stick
Interface: USB

Hi,
Im trying to send sms message from this shell script adding line feed:



I tried to execute this "/send_sms.sh 39123456789 First Line \r\n Second Line \r\n Third Line"
SMS is send and \r\n are removed from SMS, but I do not receive linefeed on my phone.
Thanks
for help.

Marco


« Last edit by marcolino7 on Fri Jan 23, 2015 11:13, 112 months ago. »
Member
Registered:
May 2009
Location: Italy
Topic owner
Hi,
any help on this? I need to add Linefeed on my SMS

Thanks a lot

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Enter the text in quotation marks:

/send_sms.sh 39123456789 "First Line\nSecond Line\nThird Line"

or

/send_sms.sh 39123456789 "First Line
> Second Line
> Third Line"

Member
Registered:
May 2009
Location: Italy
Topic owner
Hi keke and thanks for aswer.
I call the script from OpenHab, an home automation system.
This is the string I pass to SMS3:



it stop sending message before % and i only receive Stato=Modula 70
Is there a way to send also the % sign? Removing it \n work

Thanks

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
It seems that OpenHab cuts the text. I cannot help with this. :(

Member
Registered:
May 2009
Location: Italy
Topic owner
Removing % it works.
I don't know where it broke the mechanism. In case i removed all % with openhab, before sending SMS. Now SMS is sent with Carriage Return.
Many Thanks for help

Marco

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.