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 | |
# 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 & |