Sorry — I’ve been jumping between tests of the implementation. The basic XML is the same between them, but the directories are different.
OK, here’s the plist.
[code] Label com.myname.mylaunchd LowPriorityIO OnDemand ProgramArguments /Users/myuser/myscript.sh WatchPaths /Users/myuser/Sites/mysite [/code]
It’s watching the local directory, ~/Desktop/testfolder.
[QUOTE][u]Quote by: khiltd[/u][p]What does the script actually do? [/p][/QUOTE] It is an rsync command: [code]#! /bin/sh rsync -avz –delete-after ~/Desktop/testfolder [email protected]:./public_html/[/code]
Recent Comments