Skip to main content
new tags
Link
user147505
user147505

HowtoHow can I send a message to kannelkannel with lines and special character. Example if I have file message.txt which have following text

line1 with few special characters like @ " / :
line 2 spaces words etc
line 3 "special characters like @ " / :
line 4 end

How tocan I pass this to KANNEL via bash using CURL ? like curl root@radius:/temp# cat test

#!/bin/bash
MSG=`cat /temp/message.txt`
curl "http://127.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannelpassword&to=03333333333&text=$MSG"

But it says "curl: (3) Illegal characters found in URL"

I could have used GAMMUGAMMU but gammuit is not detecting my (teltonika g/10 com serial modem, while on kannel the modem is working fine.

Are there any other suggestionsuggestions on howtohow to send SMS via using serial modem with the text showedshown above?

Howto send message to kannel with lines and special character. Example if I have file message.txt which have following text

line1 with few special characters like @ " / :
line 2 spaces words etc
line 3 "special characters like @ " / :
line 4 end

How to pass this to KANNEL via bash using CURL ? like curl root@radius:/temp# cat test

#!/bin/bash
MSG=`cat /temp/message.txt`
curl "http://127.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannelpassword&to=03333333333&text=$MSG"

But it says "curl: (3) Illegal characters found in URL"

I could have used GAMMU but gammu not detecting my (teltonika g/10 com serial modem, on kannel modem working fine.

any other suggestion on howto send SMS via using serial modem with the text showed above?

How can I send a message to kannel with lines and special character. Example if I have file message.txt which have following text

line1 with few special characters like @ " / :
line 2 spaces words etc
line 3 "special characters like @ " / :
line 4 end

How can I pass this to KANNEL via bash using CURL ? like curl root@radius:/temp# cat test

#!/bin/bash
MSG=`cat /temp/message.txt`
curl "http://127.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannelpassword&to=03333333333&text=$MSG"

But it says "curl: (3) Illegal characters found in URL"

I could have used GAMMU but it is not detecting my (teltonika g/10 com serial modem, while on kannel the modem is working fine.

Are there any other suggestions on how to send SMS via using serial modem with the text shown above?

Source Link
Syed Jahanzaib
  • 297
  • 2
  • 7
  • 18

Sending special characters and new lines via KANNEL

Howto send message to kannel with lines and special character. Example if I have file message.txt which have following text

line1 with few special characters like @ " / :
line 2 spaces words etc
line 3 "special characters like @ " / :
line 4 end

How to pass this to KANNEL via bash using CURL ? like curl root@radius:/temp# cat test

#!/bin/bash
MSG=`cat /temp/message.txt`
curl "http://127.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannelpassword&to=03333333333&text=$MSG"

But it says "curl: (3) Illegal characters found in URL"

I could have used GAMMU but gammu not detecting my (teltonika g/10 com serial modem, on kannel modem working fine.

any other suggestion on howto send SMS via using serial modem with the text showed above?