Author |
Post |
|
#1 Fri Sep 11, 2015 15:48, 115 months ago.
|
Member
Registered: Sep 2015
Location: Germany
|
Operating system name and version: Centos 6.5 x86_64 Version of smsd: 3.1.15 Smsd installed from: sources / package repository / from elsewhere... : Repo Name and model of a modem / phone: doesnt matter Interface: serial / USB / some adapter... USB Hi, i tried to send messages like this: smssend +49blablabla 'text to show as sms' i only get: 'text' as message. same if i use "text to show as sms" if i use "text_to_show_as_sms" or similar, it works. it ends at the 'space' what do i do wrong? i tried this on a shell. would be nice to send more than one word in front of the space. whats going on? thanks. « Last edit by elemay on Fri Sep 11, 2015 15:52, 115 months ago. »
|
|
#2 Fri Sep 11, 2015 16:15, 115 months ago.
|
Member
Registered: Sep 2015
Location: Germany
Topic owner
|
Modem is: CEP_CT63 if someone cares. 
|
|
#3 Fri Sep 11, 2015 18:48, 115 months ago.
|
Member
Registered: Sep 2015
Location: Vienna, Austria
|
elemay wrote Operating system name and version: Centos 6.5 x86_64 Version of smsd: 3.1.15 Smsd installed from: sources / package repository / from elsewhere... : Repo Name and model of a modem / phone: doesnt matter Interface: serial / USB / some adapter... USB
Hi,
i tried to send messages like this:
smssend +49blablabla 'text to show as sms'
i only get: 'text' as message.
same if i use "text to show as sms"
if i use "text_to_show_as_sms" or similar, it works.
it ends at the 'space'
what do i do wrong?
i tried this on a shell.
would be nice to send more than one word in front of the space.
whats going on?
thanks.
try this shell script: to use like: your_script.sh 496768889901 "long message text" #!/bin/bash ARGV=("$@") ARGC=("$#")
#main - read incoming sms message and queue it to smsd msg_rcpt=$1 msg_body=$2 msg_body_160=${msg_body:0:160}
# now send the sms's outgoing="/var/spool/sms/GSM/GSM1"
file=`mktemp $outgoing/your_script_XXXXXX` echo "To: $msg_rcpt" >> $file echo "" >> $file echo "$msg_body_160" >> $file exit 0 'bash' Syntax Highlight powered by GeSHi
|
|
#4 Tue Sep 15, 2015 17:00, 115 months ago.
|
Member
Registered: Sep 2015
Location: Germany
Topic owner
|
Hi,
sorry for the late reply.
I modified my script similar to yours.
Now it works.
Thanks a lot!
|
|
#5 Tue Sep 15, 2015 18:58, 115 months ago.
|
Member
Registered: Sep 2015
Location: Vienna, Austria
|
Take a Look @ https://github.com/Smiril/smstools/
No release but git working with mods
|
|
#6 Tue Sep 15, 2015 19:10, 115 months ago.
|
Member
Registered: Sep 2015
Location: Germany
Topic owner
|
thanks for that, but i don't have a X server running.
|
|
#7 Tue Sep 15, 2015 19:34, 115 months ago.
|
Member
Registered: Sep 2015
Location: Vienna, Austria
|
For bash usage compile main-c.cc
|