<?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: Why am I getting &amp;quot;Cannot find program 'runshellscript'&amp;quot; errors when trying to execute a python script triggered by a saved search? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191948#M2596</link>
    <description>&lt;P&gt;So in the end this problem just fixed itself, I have no idea why, but a few days later the script was being called successfully and no more errors!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2014 16:15:39 GMT</pubDate>
    <dc:creator>lquinn</dc:creator>
    <dc:date>2014-11-12T16:15:39Z</dc:date>
    <item>
      <title>Why am I getting "Cannot find program 'runshellscript'" errors when trying to execute a python script triggered by a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191947#M2595</link>
      <description>&lt;P&gt;I have been running a saved search which triggers a python script for the last few months. I needed to make some changes to the script so I edited it and replaced the version which I kept in splunk/bin/scripts. However since I have replaced the script, it has not been executed when the saved search has run, however the search has run successfully. The following error appears in the _internal logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-03-2014 16:49:36.699 +0000 ERROR SearchScheduler - Error in 'runshellscript' command: Cannot find program 'runshellscript' or script 'runshellscript'., search='runshellscript "myscript.py" "38257" "index=example_search" "index=example_search" "mysavedsearch" "Saved Search [mysavedsearch] always(38257)" "http://localhost.localdomain:8000/app/search/@go?sid=scheduler__admin__search__mysavedsearch_at_1415033340_278" "" "scheduler__admin__search__mysavedsearch_at_1415033340_278" "/opt/splunk/var/run/splunk/dispatch/scheduler__admin__search__gdhtd_at_1415033340_278/results.csv.gz" maxtime="5m"'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;runshellscript.py is still in the same place that it always has been - in splunk/etc/apps/search/bin/default. I also made a copy into splunk/etc/apps/search/bin as a I read somewhere that that is where splunk looked for it. This made no difference. Since the script was the only thing that I changed, I tried replacing it with a barebones script that I know has no errors and this still did not work. In fact if I call a script that doesn't even exist, it still come up with the same error. I have also changed all of the permissions so that all the files are read/writeable by anyone. Anybody got any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 17:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191947#M2595</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2014-11-03T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting "Cannot find program 'runshellscript'" errors when trying to execute a python script triggered by a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191948#M2596</link>
      <description>&lt;P&gt;So in the end this problem just fixed itself, I have no idea why, but a few days later the script was being called successfully and no more errors!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191948#M2596</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2014-11-12T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting "Cannot find program 'runshellscript'" errors when trying to execute a python script triggered by a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191949#M2597</link>
      <description>&lt;P&gt;I have a feeling this is caused by not having the correct splunk "capability" assigned to the user.    It is unclear which "capability" is needed - but I'm having this problem and when I add the role "admin" to my user, it starts working fine.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 19:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191949#M2597</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-10-02T19:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting "Cannot find program 'runshellscript'" errors when trying to execute a python script triggered by a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191950#M2598</link>
      <description>&lt;P&gt;the capability "edit_scripted" is required to use "runshellscript"&lt;/P&gt;

&lt;P&gt;not clear if the splunk documenation states this...but via trial and error - it is indeed a fact in v6.2.2&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-quot-Cannot-find-program-runshellscript-quot/m-p/191950#M2598</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-10-07T16:05:41Z</dc:date>
    </item>
  </channel>
</rss>

