interactive sample

#!/bin/sh
echo "This script is a silly sample script (or proof of concept, if you will) to demonstrate the dynamic and interactive abilities of the robot voicetool robo"
PROGNAME="roboworld 1"
#################### FUNCTIONS ################
ROBCONV () {
read V; robo $V
}
#########################################################################
clear
####### FLASH IMAGE
for i in `seq 1 3`
do $WHITE off; sleep .33;$WHITE
done
$WHITE
####### WAKE UP!
robo "$PROGNAME";                     sleep 1
$WHITE off
$WHITE
robo "Yawn yawn"
$WHITE off
robo "Segmentation fault imminent"
$WHITE
robo "$PROGNAME now trying to boot"
for i in `seq 1 3`
do $WHITE off;sleep .3;$WHITE
robo failed
done
robo kernel panic
robo "The time: `date +'%H:%M'`"
$WHITE off
clear
robo ""
robo ""
echo "$PROGNAME is about to wake up..."
$WHITE
robo "Good morning, $USER";    sleep 2
robo "Please press ENTER to start $PROGNAME"
read I
clear
$WHITE off
robo "Welcome to $PROGNAME"
robo "1 2 3"
$WHITE
robo "test test "
$WHITE off
robo "yawn!"
$WHITE
robo "Yawn yawn!"
####### YOUR NAME?
robo "Please tell me your name?"
read NAME
$WHITE off
robo "$NAME is a beautiful name";         sleep 1
robo "Very beautiful"
robo "How old are you $NAME?"
read AGE
$WHITE
robo "$NAME is $AGE"
####### TYPE SOMETHING
robo "What can I do for you? Please type something I will say"
ROBCONV
$WHITE
robo "Very funny $NAME! ahahaha!"
robo "When I was $AGE, I was more creative $NAME"
#######
robo "You have a nice little ... $NAME"
robo "Do you want to dududuck with me?"
####### SAY GODDBYE
robo "bye $NAME"
clear
#echo Please listen to the kernel...
#cat /boot/vmlinuz-2.6.28-14-generic > /dev/audio
$WHITE off
echo "$PROGNAME was created by linuxnetzer
linuxnetz.wordpress.com
Released under GPL v2"
echo "contact: rokokokomiker---at***gmx.de"
exit

Advertisements

Post a Comment

Required fields are marked *

*
*

%d bloggers like this: