Created
February 14, 2013 17:56
-
-
Save liuggio/4954703 to your computer and use it in GitHub Desktop.
after long bash processing this speak the message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function speakmsg { | |
MESSAGE="OK"; | |
ERROR_="Fail"; | |
LANG="english"; | |
if [ $1 -ne 0 ]; then MESSAGE=$ERROR;fi; | |
echo $MESSAGE |espeak -p 10 -s 70 -v $LANG; | |
} | |
#usage | |
phpunit; #or your favourite long command | |
speakmsg $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment