<?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: Execute .cmd Splunk CLI Script  alert with .sh Shell Script File in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122773#M1862</link>
    <description>&lt;P&gt;I was able to successfully create the .bat file.  But Splunk still does not run the script.  Do I have to add an additional command to run the .bat file in the script field of the alert?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2014 23:56:54 GMT</pubDate>
    <dc:creator>dscoland</dc:creator>
    <dc:date>2014-06-27T23:56:54Z</dc:date>
    <item>
      <title>Execute .cmd Splunk CLI Script  alert with .sh Shell Script File</title>
      <link>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122770#M1859</link>
      <description>&lt;P&gt;Hi Splunk Community,&lt;/P&gt;

&lt;P&gt;I don't want to get technical on this, but I have an alert that I would like to run a .cmd file from when it triggers.  This .cmd runs a Splunk CLI script that generates a report which correlates to the alert.&lt;/P&gt;

&lt;P&gt;I am assuming that Splunk only recognizes .sh files within the &lt;CODE&gt;C:\Program Files\Splunk\bin\scripts&lt;/CODE&gt; directory.  Therefore, is there an easy way to execute a .cmd file with a .sh script?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 16:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122770#M1859</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-06-27T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute .cmd Splunk CLI Script  alert with .sh Shell Script File</title>
      <link>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122771#M1860</link>
      <description>&lt;P&gt;Is this even possible?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 20:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122771#M1860</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-06-27T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Execute .cmd Splunk CLI Script  alert with .sh Shell Script File</title>
      <link>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122772#M1861</link>
      <description>&lt;P&gt;If you are running Splunk on Windows, Splunk will run &lt;CODE&gt;.bat&lt;/CODE&gt; scripts instead of &lt;CODE&gt;.sh&lt;/CODE&gt; scripts.&lt;/P&gt;

&lt;P&gt;So just write a &lt;CODE&gt;.bat&lt;/CODE&gt; script that launches whatever you like!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 23:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122772#M1861</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-27T23:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Execute .cmd Splunk CLI Script  alert with .sh Shell Script File</title>
      <link>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122773#M1862</link>
      <description>&lt;P&gt;I was able to successfully create the .bat file.  But Splunk still does not run the script.  Do I have to add an additional command to run the .bat file in the script field of the alert?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 23:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122773#M1862</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-06-27T23:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Execute .cmd Splunk CLI Script  alert with .sh Shell Script File</title>
      <link>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122774#M1863</link>
      <description>&lt;P&gt;All you should need to do is to put the full path to the script in the right box of the alert actions.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2014 01:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Execute-cmd-Splunk-CLI-Script-alert-with-sh-Shell-Script-File/m-p/122774#M1863</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-28T01:53:26Z</dc:date>
    </item>
  </channel>
</rss>

