<?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 Send command with SH in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Send-command-with-SH/m-p/429991#M122949</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I would need a .sh script that allows me to read only the second line of a file and then send it to machine B.&lt;/P&gt;

&lt;P&gt;Example file:&lt;/P&gt;

&lt;P&gt;timestamp_pippo.csv&lt;/P&gt;

&lt;P&gt;"Row1_skipped"&lt;BR /&gt;
"Row2_send_to_machine"&lt;/P&gt;

&lt;P&gt;the file is in the path:&lt;BR /&gt;
C:\Program Files\Splunk\var\run\splunk\csv &lt;/P&gt;

&lt;P&gt;only the second row "row2_send_to_machine" (contains a unix command) must be sent to machine B&lt;/P&gt;

&lt;P&gt;once the command has been sent, the file timestamp_pippo.csv must be deleted.&lt;BR /&gt;
can you help me? I'm not familiar with .sh&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:37:38 GMT</pubDate>
    <dc:creator>broccolino</dc:creator>
    <dc:date>2020-09-30T01:37:38Z</dc:date>
    <item>
      <title>Send command with SH</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-command-with-SH/m-p/429991#M122949</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I would need a .sh script that allows me to read only the second line of a file and then send it to machine B.&lt;/P&gt;

&lt;P&gt;Example file:&lt;/P&gt;

&lt;P&gt;timestamp_pippo.csv&lt;/P&gt;

&lt;P&gt;"Row1_skipped"&lt;BR /&gt;
"Row2_send_to_machine"&lt;/P&gt;

&lt;P&gt;the file is in the path:&lt;BR /&gt;
C:\Program Files\Splunk\var\run\splunk\csv &lt;/P&gt;

&lt;P&gt;only the second row "row2_send_to_machine" (contains a unix command) must be sent to machine B&lt;/P&gt;

&lt;P&gt;once the command has been sent, the file timestamp_pippo.csv must be deleted.&lt;BR /&gt;
can you help me? I'm not familiar with .sh&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-command-with-SH/m-p/429991#M122949</guid>
      <dc:creator>broccolino</dc:creator>
      <dc:date>2020-09-30T01:37:38Z</dc:date>
    </item>
  </channel>
</rss>

