Browse Source

Add script to restart executable on change

master
lhark 8 years ago
parent
commit
83bc804ee0
  1. 7
      restart-on-change

7
restart-on-change

@ -0,0 +1,7 @@
#!/bin/sh
while true; do
$@ &
PID=$!
inotifywait $1
kill $PID
done
Loading…
Cancel
Save