![]() |
[Announce] smssend: send sms from the command line (CLI)
smssend sends sms from the command line (CLI)
Code:
Usage: 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 NOTE: to promote the package please test and rate karma http://maemo.org/packages/package_in...smssend/0.1.6/ |
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 (:
|
Re: [Announce] smssend: send sms from the command line (CLI)
No problem, it's open source. :)
|
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. |
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 |
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.
|
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). |
Re: [Announce] smssend: send sms from the command line (CLI)
Pardon my ignorance but what is a flash-sms?
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
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.
|
Re: [Announce] smssend: send sms from the command line (CLI)
Tried and failed to add these as tickets on your Assembla page for smssend, sorry:
1 - Messages over 160 characters result in only 160 characters appearing in sent db (not sure what arrived) -- (pnatd) 2 - Multiple recipients using -C option justs brings up respective windows and doesn't seem to send anything (Could this be a timing issue as takes a long time to bring up multiple windows?) 3 - Occasionally doesn't appear to send with -C option (Timing again?) Love this app, currently my most used by some way. Favourite use so far is pretending to remember people's birthdays. PS: Version 0.1.5 |
Re: [Announce] smssend: send sms from the command line (CLI)
Can -m be made optional if -c is used?
The idea is to use (in a shortcut) smssend -c with the contact number to bring up the conversation window. Cheers! -A |
Re: [Announce] smssend: send sms from the command line (CLI)
@amarshall it's a good idea
i think you can pu an empty string in the parameter -m ? |
Re: [Announce] smssend: send sms from the command line (CLI)
Hi sakya,
Have been experimenting with the smssend package and it works quite nicely. Can we assume the basic options kinda frozen and use it as a dependency on other programs/applications? Could you also update the first post with the latest package in testing? http://maemo.org/packages/package_in...smssend/0.1.6/ Thanks for sharing. |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
I updated the first post. |
Re: [Announce] smssend: send sms from the command line (CLI)
Hi there, I was wondering if I can get the number from contacts instead of manually typing the number from CLI. Also, is the sms sent properly sent even if text > 160? It says greater than 160. but only sends the first 160 characters. any solution?
|
Re: [Announce] smssend: send sms from the command line (CLI)
Contacts should be handled by some gui using this tool, not by the cli program in my opinion.
What should the program do if the contact has more than one number defined? For messages longer than 160 chars, I'll check (honestly I never tried to send long messages with it). :) Thanks for the feedback. EDIT: I submitted now version 0.1.7 fixing the > 160 characters bug. ;) |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
My main reason for getting this implemented is that it can be a great tool to group sms in an efficient way. Probably, if there is more than one cell number associated with a contact, smssend can complain it is inappropriate to use it with contacts more than one cell number and exit over CLI? If this can be done, we can also link it to be used with Nickname? by doing this we can sms to an entire group with same nick name right? Or can the smssend have an option such that the contact numbers can be selected via GUI and not over CLI? (just like -c to type text over GUI?) By the way, thanks heaps for getting the multiple sms thing fixed. I will update/check/ get back to you on that. Thanks, nAni. |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
The 0.1.7 package is in the extras-devel repository. |
Re: [Announce] smssend: send sms from the command line (CLI)
yup, tested the 0.1.7. Works like a charm. No issues.
That is good, please see if you can. it would be great if you can do that mate. by the way, I am trying to pass a text file as the SMS content for the option -m. ("I am Testing" => only "I" is sent out) Only the first word comes out. Nothing after the space comes out. I also tried using a variable instead. Behaves similarly. Why? ex: cat sms.txt => I am Testing smssend -s -v 167 -m $(cat sms.txt) -n +1234567890 => "I" is smsd val="I am Testing" smssend -s -v 167 -m $val -n +1234567890 => "I" is smsd val="I am Testing" smssend -s -v 167 -m $(echo $val) -n +1234567890 => "I" is smsd but smssend -s -v 167 -m "I am Testing" -n +1234567890 => "I am Testing" is smsd!! any thoughts on what I am missing? |
Re: [Announce] smssend: send sms from the command line (CLI)
smssend -s -v 167 -m "$val" -n +1234567890 should works
|
Re: [Announce] smssend: send sms from the command line (CLI)
1 Attachment(s)
hi..i tried to use this app but it ghives me an error..i attached a screenshot with it..can someone help me please..thx
|
Re: [Announce] smssend: send sms from the command line (CLI)
Are you running smssend from root?
Can you please try to run it as "user"? This error is probably due to the eventlogger (which wasn't used in the first release where I said "run it as root"). |
Re: [Announce] smssend: send sms from the command line (CLI)
it worked..i entered the wrong prefix..
|
Re: [Announce] smssend: send sms from the command line (CLI)
Thank you!
Great work. |
Re: [Announce] smssend: send sms from the command line (CLI)
hey all!
maybe this is helpful for some of you guys: i wanted to ssh from my laptop into my n900 to send sms from cli. smssend was exactly what i needed... ...except that i only have the numbers of my contacts on my n900. these numbers are stored in a nasty database and not easily accessible. so i needed a way to get those numbers. fortunately there are some smart programers at this forum: http://talk.maemo.org/showthread.php...608#post990608 big thanks to nicolai once again! with his python script i was able to write an own little script which makes smssend more comfortable to use: PHP Code:
it searches the database for the nickname, extracts the (first) cellphone number and sends the text via smssend to the contact. and it produces a control output afterwards. i.e.: mysmssend Chris "hi chris!" output: SMS to Chris (+49123456789): "hi chris!" but there is a problem if two contacts start with the same nickname string like "Chris" and "Christina". this could be solved by advanced programing of nicolai's python or my script. i think nicolai's script will help some of you - that was the main reason for this post. :) edit: i forgot to mention that i forward all received sms to an email-acc with another of nicolai's great apps: http://talk.maemo.org/showthread.php?t=69264 i fetch/sync the emails from this acc every minute via imap in thunderbird. so i'm always informed about the sms on my phone even it isn't in my pocket. :) (and because my phone is always connected to my home-wlan i can ssh into it and answer the sms without searching/grabbing my phone xD) |
Re: [Announce] smssend: send sms from the command line (CLI)
nicolai updated his neat little script, so i adapted mine:
PHP Code:
edit: the search is case-sensitive *just wanted to mention* |
Re: [Announce] smssend: send sms from the command line (CLI)
I love the program and use it at work several times a day in almost exactly the same way as b666m. My only niggle is that I use the -C option to send and if the conversation window for that contact isn't already open the sent message doesn't appear (although does get sent). Subsequent messages that I send do appear if the conversation window is open. Can you call the conversation window and send the message as separate actions or add a pause? Thanks again!
|
Re: [Announce] smssend: send sms from the command line (CLI)
thanks a lot for this work! usefull with a PC connected SSH! by cons there is indeed an encodage problem with french chars (accents) but I donc't know if it's because of the X-terminal... further, without the -c or -C option, the message isn't always saved in the sent folder...
|
Re: [Announce] smssend: send sms from the command line (CLI)
is it possible to list all numbers with a matching nickname? i use nickname to get around the missing group sms feature. possible via nicolai script?
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
Uploaded now version 0.1.9
Changelog: *Fixed bug when saving messages *Fixed unicode messages Please test and report if unicode messages work. ;) |
Re: [Announce] smssend: send sms from the command line (CLI)
thanks for it! :) I've tested the 1.9 version but the same accent problems appears with the -C or with no option. By cons with the -c option, it works (it worked even before the update)...
for example: instead of "é", I get "é" |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
Thanks for your report. :) |
Re: [Announce] smssend: send sms from the command line (CLI)
hum I get the same problem with no option, for example: instead of "é", I get "é"
|
Re: [Announce] smssend: send sms from the command line (CLI)
The problem persists with both, it's encoding garbage before handing the text to conversations or sending it. Same encoding garbage that krutznikov mentions.
|
Re: [Announce] smssend: send sms from the command line (CLI)
Oh yes, with the -c option, it pastes proper text to the conversation. With the -C it pastes false text.
So there must be different encoding steps going on in the two steps... |
Re: [Announce] smssend: send sms from the command line (CLI)
OK, I'll make some other tests: I tested this only via ssh and seemed to work.
This command worked fine for me (via ssh): Code:
smssend -n xxxxx -m "مرحبا" Thanks for your tests. ;) |
All times are GMT. The time now is 02:50. |
vBulletin® Version 3.8.8