Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (10 sloc) 198 Bytes
#!/bin/sh
while [ 1 ]; do
echo " [*] Running node"
node server.js &
NODEPID=$!
echo " [*] node pid= $NODEPID"
inotifywait -r -q -e modify .
kill $NODEPID
sleep 0.1
done