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. Fri Jun 14, 2024 19:29
SMSTools3 Community » Help and support Bottom

how to send messages like: 'hi, i wait for you'

Login and Post Reply

Page:  1

Author Post
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, 106 months ago. »
Member
Registered:
Sep 2015
Location: Germany
Topic owner
Modem is: CEP_CT63

if someone cares. ;)

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


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!

Member
Registered:
Sep 2015
Location: Vienna, Austria
Take a Look @ https://github.com/Smiril/smstools/

No release but git working with mods

Member
Registered:
Sep 2015
Location: Germany
Topic owner
thanks for that, but i don't have a X server running.

Member
Registered:
Sep 2015
Location: Vienna, Austria
For bash usage compile main-c.cc

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.