Created
April 11, 2013 14:54
-
-
Save mondalaci/5364051 to your computer and use it in GitHub Desktop.
Automatically overwrite destination file with source file whenever the destination file gets overwritten by an external process. This script was written by Zachary Hobbs.
This file contains hidden or 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
while true; do | |
inotifywait -q -q -e modify -e delete $2 | |
cp $1 $2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment