SlideShare a Scribd company logo
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

More Related Content

Viewers also liked

Bakshi enterprises
Bakshi enterprisesBakshi enterprises
Bakshi enterprises
Bakshi Enterprises
 
Mad In Italy!
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...
Jürgen Marx
 
SEA Open Hack - YAP
SEA Open Hack - YAPSEA Open Hack - YAP
SEA Open Hack - YAP
Jonathan LeBlanc
 
Amazonas
AmazonasAmazonas
Amazonas
Wonder World
 
Katerina Shapira, Account Success Manager, AppsFlyer
Katerina Shapira, Account Success Manager, AppsFlyerKaterina Shapira, Account Success Manager, AppsFlyer
Katerina Shapira, Account Success Manager, AppsFlyer
White Nights Conference
 
Hands-on User Experience
Hands-on User ExperienceHands-on User Experience
Hands-on User Experience
Dirk Huysmans
 

Viewers also liked (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
 

Similar to 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 think
Wim 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 method
Vasudeva Rao
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
Wim Godden
 
mail server
mail servermail server
mail server
chacheng oo
 
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 authentication
kumar 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 all
Felipe 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 module
josnihmurni2907
 
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
hendraakbar2
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
Wim Godden
 
Alta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/LinuxAlta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/Linux
Guillermo Salas Macias
 
How.to.create.boss.detector
How.to.create.boss.detectorHow.to.create.boss.detector
How.to.create.boss.detector
Ross Tang
 
Simple chat room using python
Simple chat room using pythonSimple chat room using python
Simple chat room using python
VISHAL VERMA
 
Mail
MailMail
Mail
Md Shihab
 

Similar to 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
 

More from Arulalan T

wgrib2
wgrib2wgrib2
wgrib2
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 - Introduction
Arulalan T
 
Python an-intro-python-month-2013
Python an-intro-python-month-2013Python an-intro-python-month-2013
Python an-intro-python-month-2013
Arulalan T
 
Python an-intro v2
Python an-intro v2Python an-intro v2
Python an-intro v2
Arulalan T
 
Thermohaline Circulation & Climate Change
Thermohaline Circulation & Climate ChangeThermohaline Circulation & Climate Change
Thermohaline Circulation & Climate Change
Arulalan T
 
Python an-intro - odp
Python an-intro - odpPython an-intro - odp
Python an-intro - odp
Arulalan T
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-framework
Arulalan T
 
Pygrib documentation
Pygrib documentationPygrib documentation
Pygrib documentation
Arulalan T
 
Lesson1 python an introduction
Lesson1 python an introductionLesson1 python an introduction
Lesson1 python an introduction
Arulalan T
 
Python An Intro
Python An IntroPython An Intro
Python An Intro
Arulalan T
 
Final review contour
Final review  contourFinal review  contour
Final review contour
Arulalan 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 Presentation
Arulalan 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
 
Nomography
NomographyNomography
Nomography
Arulalan T
 
matplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guidematplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guide
Arulalan T
 
"contour.py" module
"contour.py" module"contour.py" module
"contour.py" module
Arulalan T
 

More from 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
 

Recently uploaded

RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 

Recently uploaded (20)

RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 

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