Skip to content

Instantly share code, notes, and snippets.

View TijmenWierenga's full-sized avatar

Tijmen Wierenga TijmenWierenga

View GitHub Profile
@yoshz
yoshz / watch.sh
Last active October 2, 2017 16:18
Restart process when a source file changed
#!/bin/sh
# make sure you have inotify-tools installed: https://github.com/rvoicilas/inotify-tools/wiki
# process you want to execute
PROCESS="php server.php"
# directory you want to watch for modified files
SOURCE_PATH=src
$PROCESS &