Last active
December 26, 2015 07:09
-
-
Save kissge/7113316 to your computer and use it in GitHub Desktop.
ISE synthesis watcher
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
#!/bin/sh | |
while true; do | |
while [ -z "$(top -bn1 | grep -E ' (xst|xlicmgr|ngcbuild|xtclsh|ngdbuild|map|par|trce|bitgen)' | grep -v 'defunct')" ]; do | |
echo "Not Running\033[1A" | |
sleep 5 | |
done | |
paplay $1 & | |
while [ -n "$(top -bn1 | grep -E ' (xst|xlicmgr|ngcbuild|xtclsh|ngdbuild|map|par|trce|bitgen)' | grep -v 'defunct')" ]; do | |
echo "Running\033[1A" | |
sleep 2 | |
done | |
paplay $1 & | |
done | |
# usage: ./****.sh ding.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment