[asterisk-biz] Android GSM phone supporting SIP client
Steve Edwards
asterisk.org at sedwards.com
Tue Jan 19 14:19:42 CST 2010
On Tue, 19 Jan 2010, Dan Journo wrote:
> Wow, I've never seen anyone so interested in EVERYTHING!
I vote to "replace him with a very small shell script."
http://www.thinkgeek.com/tshirts-apparel/unisex/frustrations/374d/
#!/bin/bash
#
# Filename: info-info.sh
#
# Abstract: This script generates nonsense
#
# Environment: Unix, bash
#
# Author: Steven L. Edwards
# define variables
DICT=/usr/share/dict/words
RECIPIENT=asterisk-biz at lists.digium.com
RECIPIENT=${USER}
# extract a random word from DICT
function random_word()
{
tail --lines=+$((${RANDOM} * 14)) ${DICT} | head --lines 1
}
# create the subject
SUBJECT="$(random_word) $(random_word)"
# create the body
BODY=
for ((
MESSAGE_LENGTH=$((${RANDOM} % 5))
; MESSAGE_LENGTH
; --MESSAGE_LENGTH
))
do
BODY="${BODY} $(random_word)"
done
# output the email
echo "To: ${RECIPIENT}"
echo "Subject: ${SUBJECT}"
echo
echo 'Dear List,'
echo
echo "I am very very interested in${BODY}?"
echo
echo 'Thanks & Best Regards,'
echo 'J[o]k[e]softwaresolutions Technical Team'
# (end of info-info.sh)
Surprisingly, it generates more intelligible posts than most of the recent
posts -- at least it gets the spelling correct :)
Maybe we could have a contest...
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-biz
mailing list