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." &
Written by Marco Tralles
Related protips
1 Response
Don't forget to note that you should install : gnustep-gui-runtime
sudo apt-get install gnustep-gui-runtime
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Console
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#