blog:send_sms_from_the_command_line_using_skype_and_unix:linux
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blog:send_sms_from_the_command_line_using_skype_and_unix:linux [2012-06-07 07:19] – brb | blog:send_sms_from_the_command_line_using_skype_and_unix:linux [2012-07-11 06:57] (current) – brb | ||
---|---|---|---|
Line 2: | Line 2: | ||
Install the Skype4Py module | Install the Skype4Py module | ||
+ | sudo apt-get install python-pip | ||
sudo pip install Skype4Py | sudo pip install Skype4Py | ||
| | ||
- | FIXME | + | <file python sendsms.py> |
+ | # | ||
+ | # Send sms via Skype | ||
+ | # v1.0 B.Brunner | ||
+ | # Install skype for python: | ||
+ | # > sudo apt-get install skype | ||
+ | # > sudo apt-get install python-pip | ||
+ | # > sudo pip install Skype4Py | ||
+ | |||
+ | import Skype4Py | ||
+ | import sys | ||
+ | |||
+ | if (len(sys.argv)> | ||
+ | s = Skype4Py.Skype(Transport=' | ||
+ | |||
+ | if not s.Client.IsRunning: | ||
+ | s.Client.Start() | ||
+ | |||
+ | s.Attach() | ||
+ | |||
+ | message = sys.argv[2] | ||
+ | number = sys.argv[1] | ||
+ | |||
+ | m = s.CreateSms(Skype4Py.smsMessageTypeOutgoing, | ||
+ | m.Body = message | ||
+ | |||
+ | m.Send() | ||
+ | else: | ||
+ | print " | ||
+ | </ | ||
blog/send_sms_from_the_command_line_using_skype_and_unix/linux.1339046383.txt.gz · Last modified: 2012-06-07 07:19 by brb