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/bash | |
# | |
# Sync local directory to remote directory. | |
# | |
# Modified by: Leo Mao | |
# Modified from: https://gist.github.com/evgenius/6019316 | |
# | |
# Requires Linux, bash, inotifywait and rsync. | |
# | |
# To avoid executing the command multiple times when a sequence of |
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 | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <ifname> [delay (s) default=10s]"; | |
exit 1; | |
fi | |
eth=$1 | |
if [ "x$2" -eq "x" ]; then | |
delay=10 | |
else |
OlderNewer