title: Error with bash script "exit code 126"
body: <p>I want integrate CPD (Copy-Paste-Detection) to my iOS project. I read about it <a href="http://deadmeta4.com/2011/05/17/objective-c-copy-paste-detection-using-jenkins/" rel="noreferrer">here</a> and <a href="http://habrahabr.ru/post/137875/" rel="noreferrer">here</a>.</p>
  
  <p>To automatically determine CopyPaste in the code I'm using bash script:</p>
  
  <pre><code>echo "Checking files in ${SOURCE_ROOT}"
  JARS_DIR=${PROJECT_DIR}/CPD
  FULL_PATH_TO_CPD_XML_OUTPUT=${PROJECT_DIR}/cpd-output.xml
  
  # Running CPD
  java -classpath "${JARS_DIR}/ObjCLanguage-0.0.5-SNAPSHOT.jar:${JARS_DIR}/pmd.jar" net.sourceforge.pmd.cpd.CPD --minimum-tokens 100 --files "${SOURCE_ROOT}" -v --language ObjectiveC --encoding UTF-8 --format net.sourceforge.pmd.cpd.XMLRenderer &gt; "${FULL_PATH_TO_CPD_XML_OUTPUT}"
  
  # Running self :)
  ${BUILT_PRODUCTS_DIR} -cpd-xml "${FULL_PATH_TO_CPD_XML_OUTPUT}"
  </code></pre>
  
  <p>That code create cpd-output.xml file. But take me an error at compile time "Command /bin/sh failed with exit code 126". Here is log copy <a href="http://pastebin.com/359k1Wni" rel="noreferrer">http://pastebin.com/359k1Wni</a>
  I took the code from this <a href="http://dl.dropbox.com/u/45054714/CPDObjective-C.zip" rel="noreferrer">example project</a>
  Error is going then I comment this string: </p>
  
  <pre><code>${BUILT_PRODUCTS_DIR} -cpd-xml "${FULL_PATH_TO_CPD_XML_OUTPUT}"
  </code></pre>
  
  <p>I tried to find what ever information about this error, but found only a few of these problems without answers. I'm not know anything about bash scripting. I will be happy with any advice. 
  Thank you for your attention.</p>
  
  <p>P.S. Author of following the script written:</p>
  
  <blockquote>
    <p>In order to integrate XCode and the CPD, we will add to the Build
    Phases target with the project, Run Script phase, conventionally
    consisting of several parts: Actually calling cpd Parsing
    cpd-output.xml Output in the "right format"</p>
  </blockquote>