SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
SMS Frame Work

Hai Friends,

Now we r going to see , how to send bulk sms using Mysql and Ruby and Gnokii.

For that we need to install following packages.

# To install MySql database:

$ sudo apt-get install mysql-server mysql-client mysql-admin

While install mysql , it will ask Password for root user of mysql database. We need to
enter password two times. Type password as “password” itself. It will be safe.


# To install Ruby

$ sudo apt-get install ruby

$ sudo apt-get install libmysql-ruby

# To install Gnokii ( send sms from mobiles )

$ sudo apt-get install gnokii


Connect mobile and system:

To connct the mobile and sys ON the bluetooth in mobile and system,for system use
bluetooth dongle no need of any drivers for bluetooth dongle.

In system the bluetooth sysbol apper as

note:

*in bluetooth symbol click and get preference and select “service”

In this sysmbol right click and select “Browse device” and select the u r mobile and
click “connect” ,and accept the msg in mobile and give any passky and click ok,now
the mobile and system paired successfully.

Now goto terminal type,

$ sudo gedit /etc/gnokiirc
gnokiirc(/etc)-gedit file opened and change the settings as follows

  * in 27th line default present like
  * #port = aa:bb:cc:dd:ee:ff
  * change port = aa:bb:cc:dd:ee:ff and we want the mobile id or address to get(when
mobile and sys connected only) type in terminal like
  * $ hcitool scan
  * it gives some address and copy this .
  * Paste in the 27th line like port = aa:bb:cc:dd:ee:ff change port = “u r mobile
address”
  * enable model = AT in 51th line disable #model=6110
  * put like because v use bluetooth connection # connection = serial in 90th line
  * remove # from connection = bluetooth in 101 st line.

note:

*the id of mobile change depend on mobile model

*don’t use china and goriya.. mobiles or try….

    *get preference from bluetooth symbol and enable input service and disable serial
service

   *Use Ubuntu 8.04 for bluetooth it is compatable…

send sms and enjoy:

go to terminal for send single sms to single number

type

$ echo “ Hai My Dear Friend , Have A Good Day “ | gnokii --sendsms mobileno

Press Enter .

now send succeed !...



How to send sms to many numbers by automatically :


Just follow three steps:
Step 1:

Open text editor.
Type the contact person name and type comma ( , ) and followed by contact number
and press Enter.

Repeat this process upto we need to add contacts to send sms.

Eg:

Kanchi_Lug_Contacts

Arulalan,9994332225
Raj Kumar,9940857450
Dasthageer,9994685704
.
.
.
xxxxxxxx,9876543210

I saved the text as “Kanchi_Lug_Contacts”. And While type last contact person
number in your list, Pl dont press Enter.


Step 2:

Type the follwing in terminal :

$ mysql -u root -p

It will ask to enter Password. U have to type root password for Mysql. ( what u
typed passwd while installing mysql )

mysql > create database myphone;

mysql > exit;



#initial.rb

require "mysql"

my = Mysql::new("localhost", "root", "password", "myphone")
# Here, type host name, root , passwd for root user and finally database.

my.query("create table kanchilug (sno integer(5) not null auto_increment primary
key,name varchar(25),phone varchar(15))")
my.query("insert into kanchilug values(1,'Arulalan','9994332225')")

# To make auto matic sno ( primary key) we need to insert atleast one record.

file=File.open("Kanchi_Lug_Contacts","r")
file.each do |name_and_no|
name_and_no.chomp!
contact=name_and_no.split(/,/)
my.query("insert into kanchilug values('','#{contact[0]}','#{contact[1]}')")
end
my.close
print " Kanchi Lug Members Contact Saved "




Step 3:

# Klug_Send_Sms.rb

require "mysql"

my = Mysql::new("localhost", "root", "password", "myphone")
klug_contacts=my.query("select * from kanchilug")


klug_contacts.each do |contact|

# Here contact becomes araay which stored 'sno', 'name', 'number'

system("echo ' Hi Kanchi Lug Friends , we hv class on sunday 3 pm. v r going to
learn about Arduino Board & Python. Same place, come early ' | gnokii --sendsms
'#{contact[2]}' ")

print "Kanchilug msg sent to #{contact[0]} : #{contact[1]} : #{contact[2]} n "
sleep(10)

end

my.close
print " Msg Sent To All Kanchi Lug Members Successfully n"
print "Byen"



Thats all....


Here u need to type ur msg with echo “ “ in this program.

Here after u just run the above program only to send sms .

First two steps for setup, initially. ( No need for every time :- )

Yeap !

Enjoy With Ruby and Gnokii by sending bulk sms...

Regards ,

Arulalan.T

Mais conteúdo relacionado

Destaque

Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...
Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...
Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...Jürgen Marx
 
Katerina Shapira, Account Success Manager, AppsFlyer
Katerina Shapira, Account Success Manager, AppsFlyerKaterina Shapira, Account Success Manager, AppsFlyer
Katerina Shapira, Account Success Manager, AppsFlyerWhite Nights Conference
 
Hands-on User Experience
Hands-on User ExperienceHands-on User Experience
Hands-on User ExperienceDirk Huysmans
 

Destaque (7)

Bakshi enterprises
Bakshi enterprisesBakshi enterprises
Bakshi enterprises
 
Mad In Italy!
Mad In Italy!Mad In Italy!
Mad In Italy!
 
Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...
Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...
Veränderungsprozesse: Wie wir Widerstände und Konflikte vermeiden. Und nutzen...
 
SEA Open Hack - YAP
SEA Open Hack - YAPSEA Open Hack - YAP
SEA Open Hack - YAP
 
Amazonas
AmazonasAmazonas
Amazonas
 
Katerina Shapira, Account Success Manager, AppsFlyer
Katerina Shapira, Account Success Manager, AppsFlyerKaterina Shapira, Account Success Manager, AppsFlyer
Katerina Shapira, Account Success Manager, AppsFlyer
 
Hands-on User Experience
Hands-on User ExperienceHands-on User Experience
Hands-on User Experience
 

Semelhante a sms frame work

Sms frame work using gnokii, ruby & csv - command line argument
Sms frame work using gnokii, ruby & csv - command line argument Sms frame work using gnokii, ruby & csv - command line argument
Sms frame work using gnokii, ruby & csv - command line argument Arulalan T
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I thinkWim Godden
 
Using the cisco console in linux
Using the cisco console in linux Using the cisco console in linux
Using the cisco console in linux IT Tech
 
Multiple instances second method
Multiple instances second methodMultiple instances second method
Multiple instances second methodVasudeva Rao
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I thinkWim Godden
 
2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)Felipe Prado
 
Oracle Managed Files Transfer- Key based authentication
Oracle Managed Files Transfer- Key based authenticationOracle Managed Files Transfer- Key based authentication
Oracle Managed Files Transfer- Key based authenticationkumar gaurav
 
2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)Felipe Prado
 
2600 v09 n3 (autumn 1992)
2600 v09 n3 (autumn 1992)2600 v09 n3 (autumn 1992)
2600 v09 n3 (autumn 1992)Felipe Prado
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort webhostingguy
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort webhostingguy
 
DEF CON 23 - Phil Polstra - one device to pwn them all
DEF CON 23 - Phil Polstra - one device to pwn them allDEF CON 23 - Phil Polstra - one device to pwn them all
DEF CON 23 - Phil Polstra - one device to pwn them allFelipe Prado
 
Call and message using arduino and gsm module
Call and message using arduino and gsm moduleCall and message using arduino and gsm module
Call and message using arduino and gsm modulejosnihmurni2907
 
dokumen.tips_cara-setting-mikrotik-pppoe.doc
dokumen.tips_cara-setting-mikrotik-pppoe.docdokumen.tips_cara-setting-mikrotik-pppoe.doc
dokumen.tips_cara-setting-mikrotik-pppoe.dochendraakbar2
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I thinkWim Godden
 
How.to.create.boss.detector
How.to.create.boss.detectorHow.to.create.boss.detector
How.to.create.boss.detectorRoss Tang
 
Simple chat room using python
Simple chat room using pythonSimple chat room using python
Simple chat room using pythonVISHAL VERMA
 

Semelhante a sms frame work (20)

Sms frame work using gnokii, ruby & csv - command line argument
Sms frame work using gnokii, ruby & csv - command line argument Sms frame work using gnokii, ruby & csv - command line argument
Sms frame work using gnokii, ruby & csv - command line argument
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
 
Using the cisco console in linux
Using the cisco console in linux Using the cisco console in linux
Using the cisco console in linux
 
Multiple instances second method
Multiple instances second methodMultiple instances second method
Multiple instances second method
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
 
mail server
mail servermail server
mail server
 
2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)
 
Oracle Managed Files Transfer- Key based authentication
Oracle Managed Files Transfer- Key based authenticationOracle Managed Files Transfer- Key based authentication
Oracle Managed Files Transfer- Key based authentication
 
2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)
 
2600 v09 n3 (autumn 1992)
2600 v09 n3 (autumn 1992)2600 v09 n3 (autumn 1992)
2600 v09 n3 (autumn 1992)
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort
 
DEF CON 23 - Phil Polstra - one device to pwn them all
DEF CON 23 - Phil Polstra - one device to pwn them allDEF CON 23 - Phil Polstra - one device to pwn them all
DEF CON 23 - Phil Polstra - one device to pwn them all
 
Call and message using arduino and gsm module
Call and message using arduino and gsm moduleCall and message using arduino and gsm module
Call and message using arduino and gsm module
 
dokumen.tips_cara-setting-mikrotik-pppoe.doc
dokumen.tips_cara-setting-mikrotik-pppoe.docdokumen.tips_cara-setting-mikrotik-pppoe.doc
dokumen.tips_cara-setting-mikrotik-pppoe.doc
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
 
Alta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/LinuxAlta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/Linux
 
How.to.create.boss.detector
How.to.create.boss.detectorHow.to.create.boss.detector
How.to.create.boss.detector
 
Simple chat room using python
Simple chat room using pythonSimple chat room using python
Simple chat room using python
 
Mail
MailMail
Mail
 

Mais de Arulalan T

Climate Data Operators (CDO)
Climate Data Operators (CDO)Climate Data Operators (CDO)
Climate Data Operators (CDO)Arulalan T
 
CDAT - graphics - vcs - xmgrace - Introduction
CDAT - graphics - vcs - xmgrace - Introduction CDAT - graphics - vcs - xmgrace - Introduction
CDAT - graphics - vcs - xmgrace - Introduction Arulalan T
 
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction Arulalan T
 
CDAT - cdms numpy arrays - Introduction
CDAT - cdms numpy arrays - IntroductionCDAT - cdms numpy arrays - Introduction
CDAT - cdms numpy arrays - IntroductionArulalan T
 
Python an-intro-python-month-2013
Python an-intro-python-month-2013Python an-intro-python-month-2013
Python an-intro-python-month-2013Arulalan T
 
Python an-intro v2
Python an-intro v2Python an-intro v2
Python an-intro v2Arulalan T
 
Thermohaline Circulation & Climate Change
Thermohaline Circulation & Climate ChangeThermohaline Circulation & Climate Change
Thermohaline Circulation & Climate ChangeArulalan T
 
Python an-intro - odp
Python an-intro - odpPython an-intro - odp
Python an-intro - odpArulalan T
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkArulalan T
 
Pygrib documentation
Pygrib documentationPygrib documentation
Pygrib documentationArulalan T
 
Lesson1 python an introduction
Lesson1 python an introductionLesson1 python an introduction
Lesson1 python an introductionArulalan T
 
Python An Intro
Python An IntroPython An Intro
Python An IntroArulalan T
 
Final review contour
Final review  contourFinal review  contour
Final review contourArulalan T
 
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation Arulalan T
 
Contour Ilugc Demo Presentation
Contour Ilugc Demo PresentationContour Ilugc Demo Presentation
Contour Ilugc Demo PresentationArulalan T
 
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
Edit/correct India Map In Cdat  Documentation -  With Edited World Map Data Edit/correct India Map In Cdat  Documentation -  With Edited World Map Data
Edit/correct India Map In Cdat Documentation - With Edited World Map Data Arulalan T
 
matplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guidematplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guideArulalan T
 
"contour.py" module
"contour.py" module"contour.py" module
"contour.py" moduleArulalan T
 

Mais de Arulalan T (20)

wgrib2
wgrib2wgrib2
wgrib2
 
Climate Data Operators (CDO)
Climate Data Operators (CDO)Climate Data Operators (CDO)
Climate Data Operators (CDO)
 
CDAT - graphics - vcs - xmgrace - Introduction
CDAT - graphics - vcs - xmgrace - Introduction CDAT - graphics - vcs - xmgrace - Introduction
CDAT - graphics - vcs - xmgrace - Introduction
 
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
 
CDAT - cdms numpy arrays - Introduction
CDAT - cdms numpy arrays - IntroductionCDAT - cdms numpy arrays - Introduction
CDAT - cdms numpy arrays - Introduction
 
Python an-intro-python-month-2013
Python an-intro-python-month-2013Python an-intro-python-month-2013
Python an-intro-python-month-2013
 
Python an-intro v2
Python an-intro v2Python an-intro v2
Python an-intro v2
 
Thermohaline Circulation & Climate Change
Thermohaline Circulation & Climate ChangeThermohaline Circulation & Climate Change
Thermohaline Circulation & Climate Change
 
Python an-intro - odp
Python an-intro - odpPython an-intro - odp
Python an-intro - odp
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-framework
 
Pygrib documentation
Pygrib documentationPygrib documentation
Pygrib documentation
 
Lesson1 python an introduction
Lesson1 python an introductionLesson1 python an introduction
Lesson1 python an introduction
 
Python An Intro
Python An IntroPython An Intro
Python An Intro
 
Final review contour
Final review  contourFinal review  contour
Final review contour
 
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
 
Contour Ilugc Demo Presentation
Contour Ilugc Demo PresentationContour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
 
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
Edit/correct India Map In Cdat  Documentation -  With Edited World Map Data Edit/correct India Map In Cdat  Documentation -  With Edited World Map Data
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
 
Nomography
NomographyNomography
Nomography
 
matplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guidematplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guide
 
"contour.py" module
"contour.py" module"contour.py" module
"contour.py" module
 

Último

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 

Último (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

sms frame work

  • 1. SMS Frame Work Hai Friends, Now we r going to see , how to send bulk sms using Mysql and Ruby and Gnokii. For that we need to install following packages. # To install MySql database: $ sudo apt-get install mysql-server mysql-client mysql-admin While install mysql , it will ask Password for root user of mysql database. We need to enter password two times. Type password as “password” itself. It will be safe. # To install Ruby $ sudo apt-get install ruby $ sudo apt-get install libmysql-ruby # To install Gnokii ( send sms from mobiles ) $ sudo apt-get install gnokii Connect mobile and system: To connct the mobile and sys ON the bluetooth in mobile and system,for system use bluetooth dongle no need of any drivers for bluetooth dongle. In system the bluetooth sysbol apper as note: *in bluetooth symbol click and get preference and select “service” In this sysmbol right click and select “Browse device” and select the u r mobile and click “connect” ,and accept the msg in mobile and give any passky and click ok,now the mobile and system paired successfully. Now goto terminal type, $ sudo gedit /etc/gnokiirc
  • 2. gnokiirc(/etc)-gedit file opened and change the settings as follows * in 27th line default present like * #port = aa:bb:cc:dd:ee:ff * change port = aa:bb:cc:dd:ee:ff and we want the mobile id or address to get(when mobile and sys connected only) type in terminal like * $ hcitool scan * it gives some address and copy this . * Paste in the 27th line like port = aa:bb:cc:dd:ee:ff change port = “u r mobile address” * enable model = AT in 51th line disable #model=6110 * put like because v use bluetooth connection # connection = serial in 90th line * remove # from connection = bluetooth in 101 st line. note: *the id of mobile change depend on mobile model *don’t use china and goriya.. mobiles or try…. *get preference from bluetooth symbol and enable input service and disable serial service *Use Ubuntu 8.04 for bluetooth it is compatable… send sms and enjoy: go to terminal for send single sms to single number type $ echo “ Hai My Dear Friend , Have A Good Day “ | gnokii --sendsms mobileno Press Enter . now send succeed !... How to send sms to many numbers by automatically : Just follow three steps:
  • 3. Step 1: Open text editor. Type the contact person name and type comma ( , ) and followed by contact number and press Enter. Repeat this process upto we need to add contacts to send sms. Eg: Kanchi_Lug_Contacts Arulalan,9994332225 Raj Kumar,9940857450 Dasthageer,9994685704 . . . xxxxxxxx,9876543210 I saved the text as “Kanchi_Lug_Contacts”. And While type last contact person number in your list, Pl dont press Enter. Step 2: Type the follwing in terminal : $ mysql -u root -p It will ask to enter Password. U have to type root password for Mysql. ( what u typed passwd while installing mysql ) mysql > create database myphone; mysql > exit; #initial.rb require "mysql" my = Mysql::new("localhost", "root", "password", "myphone")
  • 4. # Here, type host name, root , passwd for root user and finally database. my.query("create table kanchilug (sno integer(5) not null auto_increment primary key,name varchar(25),phone varchar(15))") my.query("insert into kanchilug values(1,'Arulalan','9994332225')") # To make auto matic sno ( primary key) we need to insert atleast one record. file=File.open("Kanchi_Lug_Contacts","r") file.each do |name_and_no| name_and_no.chomp! contact=name_and_no.split(/,/) my.query("insert into kanchilug values('','#{contact[0]}','#{contact[1]}')") end my.close print " Kanchi Lug Members Contact Saved " Step 3: # Klug_Send_Sms.rb require "mysql" my = Mysql::new("localhost", "root", "password", "myphone") klug_contacts=my.query("select * from kanchilug") klug_contacts.each do |contact| # Here contact becomes araay which stored 'sno', 'name', 'number' system("echo ' Hi Kanchi Lug Friends , we hv class on sunday 3 pm. v r going to learn about Arduino Board & Python. Same place, come early ' | gnokii --sendsms '#{contact[2]}' ") print "Kanchilug msg sent to #{contact[0]} : #{contact[1]} : #{contact[2]} n " sleep(10) end my.close print " Msg Sent To All Kanchi Lug Members Successfully n"
  • 5. print "Byen" Thats all.... Here u need to type ur msg with echo “ “ in this program. Here after u just run the above program only to send sms . First two steps for setup, initially. ( No need for every time :- ) Yeap ! Enjoy With Ruby and Gnokii by sending bulk sms... Regards , Arulalan.T