Splunk Search

Send command with SH

New Member

Hi everyone,

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.

Example file:



the file is in the path:
C:\Program Files\Splunk\var\run\splunk\csv

only the second row "row2sendto_machine" (contains a unix command) must be sent to machine B

once the command has been sent, the file timestamp_pippo.csv must be deleted.
can you help me? I'm not familiar with .sh

0 Karma