Thursday, May 29, 2008

Shell script examples

Here are a couple bash shell scripts that I've written for the Linux/Asterisk telephony platform. I'm sharing them as that's the free software spirit. I know they can serve as working examples for someone else who might have a similar project.

The first one determines the ice cream flavor of the day by reading a webpage, and converts text to speech, to be read over an Asterisk Telephone extension
or similar. http://pastebin.com/f3e743416

The second, determines the current weather conditions and short forecast by reading data from the weather service, and converts text to speech, to be read over an Asterisk Telephone extension or similar. http://pastebin.com/f33f75836 See also: http://www.qsl.net/kb9mwr/projects/wxalert/plan.html

The Linux operating system has all the tools to write your own programs and scripts. This is why I support it. Read up on Richard Stallman and Open Source Initiative.

http://en.wikipedia.org/wiki/Richard_Stallman

http://en.wikipedia.org/wiki/Open_source_movement

I'm not a total Winblows basher.... for the average person it has its place. But bigger business and people who need reliability ought to have their head checked if they are still banking on Microsoft.


In my case, I'm a hobbiest, and the Windows platform simply just doesn't do it for me. It's not flexible enough for me to be able to learn something.

No comments:

Post a Comment