Discussion:
how to add new line character from command line
Qaiser Khan
2012-05-23 14:26:16 UTC
Permalink
hi
i am sending sms from command line using gammu, how can i add new line
character in text. GSM characters \0x0A and \0x0D do not work. please
suggest how can add new line character when using Gammu command line.

Thanks
Dinesh Shah (દિનેશ શાહ/दिनेश शाह)
2012-05-23 14:34:54 UTC
Permalink
Post by Qaiser Khan
hi
i am sending sms from command line using gammu, how can i add new line
character in text. GSM characters \0x0A and \0x0D do not work. please
suggest how can add new line character when using Gammu command line.
If you are using Linux you can do

echo -e "Hello\nWorld" | gammu ....

To send new line character.
Post by Qaiser Khan
Thanks
HTH
--
--Dinesh Shah :-)
Shah Micro System Pvt. Ltd.
+91-98213-11906
+91-9833-TICKET
http://www.shahmicro.com
Qaiser Khan
2012-05-25 19:17:54 UTC
Permalink
I am using windows and \n or \t does not work
breakDev
2012-05-25 19:23:01 UTC
Permalink
Try \r\n
Post by Qaiser Khan
I am using windows and \n or \t does not work
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
Michael Shigorin
2012-05-25 20:00:13 UTC
Permalink
Post by Qaiser Khan
I am using windows and \n or \t does not work
\r\n
?
--
---- WBR, Michael Shigorin <***@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
Qaiser Khan
2012-05-25 20:21:49 UTC
Permalink
also tried \r\n and \n\r but it didn't work

Loading...