You are not logged in.

#1 2009-03-12 20:41:06

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

SMS From Linux?

I've been using Gmail's built-in sms client and just had the idea that it would be neat if I could send SMS directly from Linux (CLI or a programme like pidgin)... Just wondering if anyone knows of a service for it.

Offline

#2 2009-03-12 20:45:54

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: SMS From Linux?

I use wammu for this. I have a connection througt bluetooth. Another option is phonetooth.


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#3 2009-03-12 20:53:56

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

For both of these though, you need a mobile phone to connect to. Gmail's service is a completely free sms service - so you type your message and the phone number and they send the sms to the phone.

Offline

#4 2009-03-12 20:59:49

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

I guess I'm looking for an open-source interface to a service like http://gizmosms.com or http://www.text4free.net so that I can send a text message from linux, without opening up firefox and using the sites' captcha system.

Offline

#5 2009-03-12 21:06:08

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: SMS From Linux?

You could write a small ruby script using Scrubyit to send texts through text4free's site.

Oh wait, didn't realize there was a CAPTCHA.  If you use http://www.txt2day.com/ instead, you could have the script output the anti-spam question, get your answer, then send it to the form before submitting.

Last edited by dannytatom (2009-03-12 21:07:50)


dnyy in IRC & Urban Terror

Offline

#6 2009-03-12 21:11:22

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

Yeah, I guess because sms service always does have an associated cost, the only way to do it through the internet (without your own phone), is to go through a website with ads which will then naturally have a CAPTCHA or math statement to deter automation.

Offline

#7 2009-03-12 21:16:43

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: SMS From Linux?

tony5429 wrote:

I've been using Gmail's built-in sms client and just had the idea that it would be neat if I could send SMS directly from Linux (CLI or a programme like pidgin)... Just wondering if anyone knows of a service for it.

most carriers have an email gateway.

http://en.wikipedia.org/wiki/SMS_gatewa … S_gateways

lots of ways to send email from a command line.  wink

Last edited by cactus (2009-03-12 21:18:05)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2009-03-12 21:53:21

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: SMS From Linux?

I used to use the smsclient package -- it's not internet bound and requires a 56k dialup, but it worked beautifully for me smile

Offline

#9 2009-03-13 01:41:27

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

sweet; I might just have to write a little open-source code to use the email to sms gateway...

sendsms -n 15555555555 "hey! i'm texting you from my computer!"

next task is going to be figuring out if the carrier can be determined by the phone number...

Last edited by tony5429 (2009-03-13 01:43:03)

Offline

#10 2009-03-13 02:02:09

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: SMS From Linux?

tony5429 wrote:

next task is going to be figuring out if the carrier can be determined by the phone number...

I doubt it, since numbers are supposed to be 'portable' these days (change carriers and take it with you).
You could probably add a flag for carrier though, and have it extrapolate the appropriate email suffixing for you.

sendsms -c att -n 1555555555 "oh balls."

Last edited by cactus (2009-03-13 02:02:37)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#11 2009-03-13 02:05:06

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

Okay; I'm playing with this a little bit, using postfix (my mail client of choice). Is there a way I can send the EOT signal via commandline? I can do this...

[root@norpass ~]# mail email@gmail.com -s "hey"
hey! what's up?!
EOT

and it works, but I'd like to be able to send the CTRL+D EOT signal all in one step... something like...

[root@norpass ~]# mail email@gmail.com -s "hey" -m "hey! what's up?!"

Does anyone know if there's a way to do that?

Offline

#12 2009-03-13 02:46:55

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

Okay; I'm writing the C code now...

system("mail number@txt.att.net -s \"\" hey CTRL+D");

How do I get the CTRL+D in there? How do I pass the EOT/EOF signal to sendmail without making the user actually push CTRL+D? I know there must be a simple way...

Offline

#13 2009-03-13 02:54:58

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Offline

#14 2009-03-13 02:58:59

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: SMS From Linux?

cactus wrote:
tony5429 wrote:

next task is going to be figuring out if the carrier can be determined by the phone number...

I doubt it, since numbers are supposed to be 'portable' these days (change carriers and take it with you).
You could probably add a flag for carrier though, and have it extrapolate the appropriate email suffixing for you.

sendsms -c att -n 1555555555 "oh balls."

True; I can also brute-force it by default, if the user does't specify a carrier, and just send to all known carriers. Not as secure, as a number could be repeated under a different carrier with a different country code, but it would work.

Offline

#15 2009-03-13 06:12:23

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: SMS From Linux?

tony5429 wrote:
cactus wrote:
tony5429 wrote:

next task is going to be figuring out if the carrier can be determined by the phone number...

I doubt it, since numbers are supposed to be 'portable' these days (change carriers and take it with you).
You could probably add a flag for carrier though, and have it extrapolate the appropriate email suffixing for you.

sendsms -c att -n 1555555555 "oh balls."

True; I can also brute-force it by default, if the user does't specify a carrier, and just send to all known carriers. Not as secure, as a number could be repeated under a different carrier with a different country code, but it would work.

sounds pretty spammy to me.
not everyone gets free SMS either.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#16 2009-03-13 15:26:13

mythus
Member
From: MS Gulf Coast
Registered: 2008-05-15
Posts: 509
Website

Re: SMS From Linux?

Just so you know, using pidgin and an AIM account, through AIM you can text to cell phones. Just put in the number with a plus in front of it and text away. I often chat with my friends and wife like this lol.

Example, +15555555555

SO that would be + the country code, the area or city code, and the number

Now remember you can only do this through AIM really on pidgin. You can't do it through kopete at first, though once you add them to your budy list on pidgin, once you transfer over to kopete it will add it to your kopete list as well allowing you to use that if you prefer.


Legends of Nor'Ova - role playing community devoted to quality forum-based and table-top role play, home of the Legends of Nor'Ova Core Rule Book and Legends of Nor'Ova: Saga of Ablution steam punk like forum based RPG

Offline

Board footer

Powered by FluxBB