1 #!/bin/bash 2 3 ######################################### 4 ##### Wake up script ##### 5 ##### Version 0.1r1 ##### 6 ##### NOTE: to interrupt it, ##### 7 ##### you must press any key ##### 8 ##### (apart from spacebar or ##### 9 ##### enter) and then press enter ##### 10 ######################################### 11 12 i='0' 13 while [ "$i" -eq "0" ]; do 14 read -t 1 j 15 if [ -z "$j" ]; then echo "Get the fuck out of bed!" | festival --tts 16 else i='1' 17 sleep 2 18 echo "Good Morning Sir" | festival --tts 19 sleep 1 20 echo "The date is" | festival --tts 21 sleep 1 22 date | festival --tts 23 sleep 3 24 echo "I hope you have a nice day" | festival --tts 25 fi 26 done 27