maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] smssend: send sms from the command line (CLI) (https://talk.maemo.org/showthread.php?t=69661)

sakya 2011-02-11 09:49

[Announce] smssend: send sms from the command line (CLI)
 
smssend sends sms from the command line (CLI)

Code:

Usage:
  smssend [options] -n +39xxxxxx:+39xxxxxx -m "Text"
Options:
  -c        : compose message with conversation
  -C        : send the message with conversation

Following options are valid only if used without -c or -C
  -l logfile : log pnatd messages to logfile
  -s        : don't save message in the sent folder
  -f        : send a flash sms
  -v VP      : set the sms validity period (0-255)
              Default value is 167 (1 day)
                0 - 143 (VP + 1) x 5 mins
              144 - 167 12 Hours + ((VP-143) x 30 mins)
              168 - 196 (VP-166) x 1 day
              197 - 255 (VP-192) x 1 week
  -p PIN    : pin code (for pin locked SIM)

With the -c option the conversation app will popup with the message ready to be sent, and the user have to press the send button.
With the -C option the conversation app will popup after the message has been queued for sending.

You can send the same message to more than one number: separate each number with ":"

smssend must be run as root (works as user if you use -c or -C options).
To use it as user:
Code:

chmod 4555 /usr/bin/pnatd
Package: http://maemo.org/packages/view/smssend/

NOTE: to promote the package please test and rate karma
http://maemo.org/packages/package_in...smssend/0.1.6/

Captwheeto 2011-02-11 10:27

Re: [Announce] smssend: send sms from the command line (CLI)
 
Not tried it yet but do you mind if I poke around the source code? Working on my own app and this sounds very useful! Thanks a lot (:

sakya 2011-02-11 10:33

Re: [Announce] smssend: send sms from the command line (CLI)
 
No problem, it's open source. :)

WhiteWolf 2011-02-11 11:21

Re: [Announce] smssend: send sms from the command line (CLI)
 
In my case, sending works but only as root

He shows me the following message as user:
"ERR: Failed to send AT + CMGF command"

Thanks for your work.

sakya 2011-02-11 11:33

Re: [Announce] smssend: send sms from the command line (CLI)
 
ops, I forgot to mention:
To use it as user:
Code:

chmod 4555 /usr/bin/pnatd

leetnoob 2011-02-11 17:10

Re: [Announce] smssend: send sms from the command line (CLI)
 
just tried it. gawd that was fun. i'm going to use espeak and this to goof around with someone. and maybe the fm transmitter. need some cheering up after todays news.

ForeverYoung 2011-02-12 04:24

Re: [Announce] smssend: send sms from the command line (CLI)
 
Sending non-english words using -C, I got junk in history. What receiver got I didn't check.
One time I got that message didn't save in history (-C).

casketizer 2011-02-12 04:54

Re: [Announce] smssend: send sms from the command line (CLI)
 
Pardon my ignorance but what is a flash-sms?

ajack 2011-02-12 07:25

Re: [Announce] smssend: send sms from the command line (CLI)
 
Quote:

Originally Posted by casketizer (Post 943620)
Pardon my ignorance but what is a flash-sms?

SMS gets "flashed" on your phone screen, but is not stored in SMS inbox...

Mentalist Traceur 2011-02-12 08:25

Re: [Announce] smssend: send sms from the command line (CLI)
 
Just tested sending to myself, both normal SMS and flash sms. Works great. Will test flash-sms-ing others when it's not the middle of the night here (which it is now). I greatly appreciate you adding this feature. Pragmatically it's not much, but it's nother thing I can smuggly say my phone can do, while others' can't. That, and it's just a neat feature to have.


All times are GMT. The time now is 04:05.

vBulletin® Version 3.8.8