I have problems running the bash code
mdfind -onlyin /some/folder my_string
This works on the terminal, but if I try
RunProcess[{"/usr/bin/mdfind", "-onlyin /some/folder", "my_string"}]
I get as an error
Unknown option -onlyin /some/foder
While
RunProcess[{"/usr/bin/mdfind", "-onlyin", "/some/folder my_string"}]
gives as an error
/usr/bin/mdfind: no query specified
What is the correct way of handling this?
RunProcess[{"mdfind", "-onlyin", "/some/folder", "my_string"}]orRunProcess[{"mdfind", "-onlyin", "/some/folder", "my_string"}, "StandardOutput"]if you only need the standard output of the command, here the filenames. – SquareOne Dec 15 '14 at 14:24