SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
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

Más contenido relacionado

Destacado

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
 

Destacado (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 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
 

Similar 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
 

Más 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
 

Más 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

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Último (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
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 ...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

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