Adding '.' to the PATH didn't work for me. I tried it many different combinations -- in my .bashrc, in the script which starts my tomcat and/or setting "<arr name="env"> <str>PATH=.:/bin:/usr/bin:/usr/local/bin</str> </arr>". None of the following worked for me...
In my scripts -- export PATH=.:$JAVA_HOME/bin:/usr/bin:/bin Different listener configurations -- <listener event="postCommit" class="solr.RunExecutableListener"> <str name="exe">snapshooter</str> <str name="dir">.</str> <bool name="wait">true</bool> <arr name="args"> <str>arg1</str> <str>arg2</str> </arr> <arr name="env"> <str>MYVAR=val1</str> </arr> </listener> <listener event="postCommit" class="solr.RunExecutableListener"> <str name="exe">snapshooter</str> <str name="dir">solr/bin</str> <bool name="wait">true</bool> <arr name="args"> <str>arg1</str> <str>arg2</str> </arr> <arr name="env"> <str>MYVAR=val1</str> </arr> </listener> <listener event="postCommit" class="solr.RunExecutableListener"> <str name="exe">snapshooter</str> <str name="dir">solr/bin</str> <bool name="wait">true</bool> <arr name="args"> <str>arg1</str> <str>arg2</str> </arr> <arr name="env"> <str>PATH=.:/bin:/usr/bin:/usr/local/bin</str> </arr> </listener> This was run on Linux 2.6.9-34.0.2.Elsmp, my login shell is bash 3.00.15(1). The solr version I am using is apache-solr-1.2.0. Daniel -----Original Message----- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 7:19 PM To: solr-user@lucene.apache.org Subject: Re: solr doesn't find exe in postCommit event : > Is it possible to update the example config file enclosed in the : > distribution as it is not working. : : done. just to be clear, the old example did in fact work *if* you had "." in your PATH ... (a bad assumption true, but i just want to make sure people understand why it worked for some people and not for others) -Hoss