Skip to content

Instantly share code, notes, and snippets.

@kissge
Last active December 26, 2015 07:09
Show Gist options
  • Save kissge/7113316 to your computer and use it in GitHub Desktop.
Save kissge/7113316 to your computer and use it in GitHub Desktop.
ISE synthesis watcher
#!/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