I am using the following line to watch a directory and run a script on changes:
watchman -- trigger my_directory runTransitionChecker '*' -- ruby ./my_script.rb
Everything works as I expect except all of the output of ruby ./my_script
is directed to my
/usr/local/Cellar/watchman390/3.9.0/var/run/watchman/blahblah-state/log
file.
From the docs and --help it seemed like maybe I was supposed to use the -f flag, but that doesn't seem to do it.