SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
SMS Frame Work Using Command Line Argument
Hai Friends,
Now we r going to see , how to send bulk sms using Ruby and Gnokii and CSV.
CSV means Comma Separated Value.
In contact list file , just open and edit at any time.


we need to install following packages.
# To install Ruby
$ sudo apt-get install 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 90 th 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


# gnokii (double minus symbol ) – - sendsms 9994332225
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:
save the follwing program as "sms_csv.rb"


#!/usr/bin/env ruby

msg=ARGV[0]
file_name=ARGV[1]

p "ur contact book name is : #{file_name} n"

file=File.open("#{file_name}","r")

file.each do |contact|

contact.chomp!

contact_detail=contact.split(/,/)

system("echo '#{msg}' | gnokii --sendsms '#{contact_detail[1]}' ")

print " msg sent to #{contact_detail[0]} : #{contact_detail[1]}   n "

sleep(10)

end

file.close
print " Msg Sent To All Members Successfully n"
print "Byen"
#End of Prog


Step 3:


Change the permission to this program by,
$ sudo chmod 777         sms_csv.rb
Step 4:
Now u can send sms by easy way.
$ ./sms_csv.rb " Hai Friend , Good Morning . Have a nice day ! "       kanchi_Lug_Contacts


here, u can call the program "sms_csv.rb" as script . ( no need to run in terminal by $ ruby
sms_csv.rb )
and using command line argument , we can can pass the message and contact file name to send sms.


Enjoy with Ruby , Gnokii and CSV.


Regards,
Arulalan.T

Contenu connexe

En vedette

Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation Contour 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
 
Python an-intro-python-month-2013
Python an-intro-python-month-2013Python an-intro-python-month-2013
Python an-intro-python-month-2013Arulalan T
 
BITRISEを使っています
BITRISEを使っていますBITRISEを使っています
BITRISEを使っていますKazuaki KURIU
 
Final review contour
Final review  contourFinal review  contour
Final review contourArulalan T
 
Python An Intro
Python An IntroPython An Intro
Python An IntroArulalan T
 
Metadataリジェクトあれこれ
MetadataリジェクトあれこれMetadataリジェクトあれこれ
MetadataリジェクトあれこれKazuaki KURIU
 
Comentari Socrates
Comentari SocratesComentari Socrates
Comentari SocratesUIB
 
Immanuel Kant (1724 1804)
Immanuel Kant (1724 1804)Immanuel Kant (1724 1804)
Immanuel Kant (1724 1804)UIB
 

En vedette (12)

Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation Contour 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
 
Python an-intro-python-month-2013
Python an-intro-python-month-2013Python an-intro-python-month-2013
Python an-intro-python-month-2013
 
BITRISEを使っています
BITRISEを使っていますBITRISEを使っています
BITRISEを使っています
 
Foss History
Foss HistoryFoss History
Foss History
 
Final review contour
Final review  contourFinal review  contour
Final review contour
 
Python An Intro
Python An IntroPython An Intro
Python An Intro
 
Metadataリジェクトあれこれ
MetadataリジェクトあれこれMetadataリジェクトあれこれ
Metadataリジェクトあれこれ
 
Comentari Socrates
Comentari SocratesComentari Socrates
Comentari Socrates
 
Immanuel Kant (1724 1804)
Immanuel Kant (1724 1804)Immanuel Kant (1724 1804)
Immanuel Kant (1724 1804)
 
Mud Run 1
Mud Run 1Mud Run 1
Mud Run 1
 
Mud Run 2
Mud Run 2Mud Run 2
Mud Run 2
 

Similaire à Sms frame work using gnokii, ruby & csv - command line argument

Simple chat room using python
Simple chat room using pythonSimple chat room using python
Simple chat room using pythonVISHAL VERMA
 
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docxINPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docxjaggernaoma
 
2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)Felipe Prado
 
2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)Felipe Prado
 
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part IIIntro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part IIBlue Elephant Consulting
 
Kamaelia Grey
Kamaelia GreyKamaelia Grey
Kamaelia Greykamaelian
 
3G 7.2Mbps HSPA Modem User Guide
3G 7.2Mbps HSPA Modem User Guide3G 7.2Mbps HSPA Modem User Guide
3G 7.2Mbps HSPA Modem User GuideDawn Cook
 
C++ Tutorial.docx
C++ Tutorial.docxC++ Tutorial.docx
C++ Tutorial.docxPinkiVats1
 
The Life Cycle of a Cell Phone
The Life Cycle of a Cell PhoneThe Life Cycle of a Cell Phone
The Life Cycle of a Cell Phonepleasure16
 
My programming final proj. (1)
My programming final proj. (1)My programming final proj. (1)
My programming final proj. (1)aeden_brines
 
12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshootingkratos1979
 
C101-PracticeProblems.pdf
C101-PracticeProblems.pdfC101-PracticeProblems.pdf
C101-PracticeProblems.pdfT17Rockstar
 

Similaire à Sms frame work using gnokii, ruby & csv - command line argument (20)

Simple chat room using python
Simple chat room using pythonSimple chat room using python
Simple chat room using python
 
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docxINPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
 
2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)2600 v02 n07 (july 1985)
2600 v02 n07 (july 1985)
 
2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)2600 v03 n08 (august 1986)
2600 v03 n08 (august 1986)
 
Intro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample ProgramIntro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample Program
 
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part IIIntro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
 
Kamaelia Grey
Kamaelia GreyKamaelia Grey
Kamaelia Grey
 
3G 7.2Mbps HSPA Modem User Guide
3G 7.2Mbps HSPA Modem User Guide3G 7.2Mbps HSPA Modem User Guide
3G 7.2Mbps HSPA Modem User Guide
 
C++ Tutorial.docx
C++ Tutorial.docxC++ Tutorial.docx
C++ Tutorial.docx
 
Protocol buffers
Protocol buffersProtocol buffers
Protocol buffers
 
Python basics
Python basicsPython basics
Python basics
 
Find ip address
Find ip addressFind ip address
Find ip address
 
Spl book salution
Spl book salutionSpl book salution
Spl book salution
 
The Life Cycle of a Cell Phone
The Life Cycle of a Cell PhoneThe Life Cycle of a Cell Phone
The Life Cycle of a Cell Phone
 
c++
c++c++
c++
 
My programming final proj. (1)
My programming final proj. (1)My programming final proj. (1)
My programming final proj. (1)
 
Chat Application
Chat ApplicationChat Application
Chat Application
 
C++ L09-Classes Part2
C++ L09-Classes Part2C++ L09-Classes Part2
C++ L09-Classes Part2
 
12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting
 
C101-PracticeProblems.pdf
C101-PracticeProblems.pdfC101-PracticeProblems.pdf
C101-PracticeProblems.pdf
 

Plus 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 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
 
Contour Ilugc Demo Presentation
Contour Ilugc Demo PresentationContour Ilugc Demo Presentation
Contour Ilugc Demo PresentationArulalan 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
 
contour analysis and visulaization documetation -1
contour analysis and visulaization documetation -1contour analysis and visulaization documetation -1
contour analysis and visulaization documetation -1Arulalan T
 
Automatic B Day Remainder Program
Automatic B Day Remainder ProgramAutomatic B Day Remainder Program
Automatic B Day Remainder ProgramArulalan T
 
comboboxentry - glade - ruby - guide
comboboxentry - glade - ruby - guidecomboboxentry - glade - ruby - guide
comboboxentry - glade - ruby - guideArulalan T
 
Panipuri An Introduction To Perfection In Food Design
Panipuri An Introduction To Perfection In Food DesignPanipuri An Introduction To Perfection In Food Design
Panipuri An Introduction To Perfection In Food DesignArulalan T
 
How To Use Open Office. Impress
How To Use Open Office. ImpressHow To Use Open Office. Impress
How To Use Open Office. ImpressArulalan T
 

Plus 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 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
 
Contour Ilugc Demo Presentation
Contour Ilugc Demo PresentationContour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
 
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
 
contour analysis and visulaization documetation -1
contour analysis and visulaization documetation -1contour analysis and visulaization documetation -1
contour analysis and visulaization documetation -1
 
Automatic B Day Remainder Program
Automatic B Day Remainder ProgramAutomatic B Day Remainder Program
Automatic B Day Remainder Program
 
comboboxentry - glade - ruby - guide
comboboxentry - glade - ruby - guidecomboboxentry - glade - ruby - guide
comboboxentry - glade - ruby - guide
 
Panipuri An Introduction To Perfection In Food Design
Panipuri An Introduction To Perfection In Food DesignPanipuri An Introduction To Perfection In Food Design
Panipuri An Introduction To Perfection In Food Design
 
How To Use Open Office. Impress
How To Use Open Office. ImpressHow To Use Open Office. Impress
How To Use Open Office. Impress
 

Dernier

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Dernier (20)

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
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 ...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Sms frame work using gnokii, ruby & csv - command line argument

  • 1. SMS Frame Work Using Command Line Argument Hai Friends, Now we r going to see , how to send bulk sms using Ruby and Gnokii and CSV. CSV means Comma Separated Value. In contact list file , just open and edit at any time. we need to install following packages. # To install Ruby $ sudo apt-get install 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 .
  • 2. * 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 90 th 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 # gnokii (double minus symbol ) – - sendsms 9994332225 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
  • 3. 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: save the follwing program as "sms_csv.rb" #!/usr/bin/env ruby msg=ARGV[0] file_name=ARGV[1] p "ur contact book name is : #{file_name} n" file=File.open("#{file_name}","r") file.each do |contact| contact.chomp! contact_detail=contact.split(/,/) system("echo '#{msg}' | gnokii --sendsms '#{contact_detail[1]}' ") print " msg sent to #{contact_detail[0]} : #{contact_detail[1]} n " sleep(10) end file.close print " Msg Sent To All Members Successfully n" print "Byen" #End of Prog Step 3: Change the permission to this program by, $ sudo chmod 777 sms_csv.rb
  • 4. Step 4: Now u can send sms by easy way. $ ./sms_csv.rb " Hai Friend , Good Morning . Have a nice day ! " kanchi_Lug_Contacts here, u can call the program "sms_csv.rb" as script . ( no need to run in terminal by $ ruby sms_csv.rb ) and using command line argument , we can can pass the message and contact file name to send sms. Enjoy with Ruby , Gnokii and CSV. Regards, Arulalan.T