![]() ![]() Rsync can also sync data over a network, so if your folders are on another computer this method can be tweaked slightly to use the relevant remote hostname. Using xargs: $ fswatch -0 | xargs -0 -n 1 -I with yours. Rsync is a very useful utility built into Mac OS X which allows the differences between two sets of files to be synchronised. Probably the simplest way to pipe fswatch to another program in order to respond to an event is ![]() You can also use it to interact with another program whenever events are detected, like this (extracted from the fswatch manpage): ![]() first I show the mounted volumes (and that MUSIC is Samba based) in the top window, then I start fswatch in the bottom left window, then I make modifications in the filesystem in the top window and you can see them happen in the Finder and also see in the bottom left window that fswatch tracks all the events. Where MUSIC is a Samba-based music server on my network. You can use fswatch, which I find easest to install via homebrew. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |