Last Updated: February 25, 2016
·
1.019K
· tralles

audible feedback for bash-scripts

i've to run several bash-scripts and sometimes it's nice to have an audible feedback beside a simple beep. so i use the say command and a db-import-script can have a nice audible output like this:

date1=$(date +"%s")

[ import code ]

date2=$(date +"%s")
diff=$(($date2-$date1))
say "import compleated in $(($diff / 60)) minutes and $(($diff % 60)) seconds." &

1 Response
Add your response

Don't forget to note that you should install : gnustep-gui-runtime
sudo apt-get install gnustep-gui-runtime

over 1 year ago ·