<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is the correct way to add nonstandard directories to execute external commands? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327545#M14546</link>
    <description>&lt;P&gt;I figured out my problem; it had nothing to do with the system path. I am posting it as an answer in case it is helpful for someone else.&lt;/P&gt;
&lt;P&gt;What I was seeing was a &lt;CODE&gt;ConverterCheckResult&lt;/CODE&gt; error from an external tool that used the &lt;EM&gt;default&lt;/EM&gt; setting for &lt;CODE&gt;tester&lt;/CODE&gt;, which is &lt;CODE&gt;SystemPathTester&lt;/CODE&gt; and defined by &lt;CODE&gt;org.nuxeo.ecm.platform.commandline.executor.service.cmdtesters.SystemPathExistTester&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;The error just contained the installation message, so it looked as though it was unable to find the executable. However, I had another tool with a custom &lt;CODE&gt;tester&lt;/CODE&gt; defined, that &lt;EM&gt;also&lt;/EM&gt; used the path, and it always worked fine. So, I reasoned that it couldn't just be the path.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My problem was that my XML contribution did not require the &lt;CODE&gt;SystemPathTester&lt;/CODE&gt; code&lt;/STRONG&gt;. When I added the following to the beginning of the file that declares my command line commands, everything worked fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.commandline.executor.service.defaultContrib&amp;lt;/require&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Anyway, this was always my own mistake -- though maybe the error handling/reporting in the Nuxeo command line classes could be improved to make the mistake clearer.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2015 14:21:03 GMT</pubDate>
    <dc:creator>Steven_Huwig1</dc:creator>
    <dc:date>2015-03-25T14:21:03Z</dc:date>
    <item>
      <title>What is the correct way to add nonstandard directories to execute external commands?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327542#M14543</link>
      <description>&lt;P&gt;We have many external converter executables that are not in &lt;CODE&gt;/bin&lt;/CODE&gt;, &lt;CODE&gt;/usr/bin&lt;/CODE&gt; or the usual other locations. I've tried to set &lt;CODE&gt;PATH&lt;/CODE&gt; in a few places with no luck:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;/etc/init.d/nuxeo&lt;/CODE&gt; (This is installed from the Nuxeo APT repository)&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;/var/lib/nuxeo/server/bin/nuxeoctl&lt;/CODE&gt; has a &lt;CODE&gt;PATH&lt;/CODE&gt; defined in it. I modified it but with no luck.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Either of these settings do nothing; the system still behaves as if the executable cannot be found. I have also modified &lt;CODE&gt;/etc/environment&lt;/CODE&gt; with no luck as far as Nuxeo goes. My command line shell finds the binaries just fine.&lt;/P&gt;
&lt;P&gt;Can anyone point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 22:58:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327542#M14543</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2015-03-24T22:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to add nonstandard directories to execute external commands?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327543#M14544</link>
      <description>&lt;P&gt;Did you try to put this in /home/${nuxeo_user}/.profile where ${nuxeo_user} is the user that is running the nuxeo process ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 11:01:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327543#M14544</guid>
      <dc:creator>Antoine_Cordier</dc:creator>
      <dc:date>2015-03-25T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to add nonstandard directories to execute external commands?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327544#M14545</link>
      <description>&lt;P&gt;Hi aCordier, I set it for the entire system in &lt;CODE&gt;/etc/environment&lt;/CODE&gt;. But it turns out that my issue had nothing to do with the path. I'll say more in my answer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:12:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327544#M14545</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2015-03-25T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to add nonstandard directories to execute external commands?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327545#M14546</link>
      <description>&lt;P&gt;I figured out my problem; it had nothing to do with the system path. I am posting it as an answer in case it is helpful for someone else.&lt;/P&gt;
&lt;P&gt;What I was seeing was a &lt;CODE&gt;ConverterCheckResult&lt;/CODE&gt; error from an external tool that used the &lt;EM&gt;default&lt;/EM&gt; setting for &lt;CODE&gt;tester&lt;/CODE&gt;, which is &lt;CODE&gt;SystemPathTester&lt;/CODE&gt; and defined by &lt;CODE&gt;org.nuxeo.ecm.platform.commandline.executor.service.cmdtesters.SystemPathExistTester&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;The error just contained the installation message, so it looked as though it was unable to find the executable. However, I had another tool with a custom &lt;CODE&gt;tester&lt;/CODE&gt; defined, that &lt;EM&gt;also&lt;/EM&gt; used the path, and it always worked fine. So, I reasoned that it couldn't just be the path.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My problem was that my XML contribution did not require the &lt;CODE&gt;SystemPathTester&lt;/CODE&gt; code&lt;/STRONG&gt;. When I added the following to the beginning of the file that declares my command line commands, everything worked fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.commandline.executor.service.defaultContrib&amp;lt;/require&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Anyway, this was always my own mistake -- though maybe the error handling/reporting in the Nuxeo command line classes could be improved to make the mistake clearer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:21:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-correct-way-to-add-nonstandard-directories-to/m-p/327545#M14546</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2015-03-25T14:21:03Z</dc:date>
    </item>
  </channel>
</rss>

