Answer the question
In order to leave comments, you need to log in
Why doesn't find work with xargs?
Hello.
There is a project build script in Jenkins, the following command is called there:
call(['find', '/path/to/site', '-type', 'd', '-exec', 'chmod', '755', '{}', ';'])
call(['find', '/path/to/site', '-type', 'd', '|', 'xargs', 'chmod', '755'])
find: paths must precede expression: |
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
Answer the question
In order to leave comments, you need to log in
maybe because | no one to process? in the first case you call one command, in the second you call two commands through the pipeline...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question