Permalink
Browse files

Add utility script to auto-rsync

  • Loading branch information...
1 parent 1e7473f commit ea27ebd63add317399d63a4f77d995710a425290 @ggreer committed Apr 12, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 util_scripts/auto_rsync.sh
View
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if [ $# -lt 2 ]
+then
+ echo "Usage: $0 path command"
+ exit 1
+fi
+
+PATH=$1
+shift
+COMMAND=$@
+
+while true
+do
+ notifywait $PATH
+ echo "Running $COMMAND"
+ $COMMAND
+done

0 comments on commit ea27ebd

Please sign in to comment.