<?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: When I am using a Python scripted input is this the path I should use? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/When-I-am-using-a-Python-scripted-input-is-this-the-path-I/m-p/380710#M6318</link>
    <description>&lt;P&gt;Splunk will use it's own python version no matter what you put in your headers.&lt;/P&gt;

&lt;P&gt;If you for some reason (e.g. using Python 3) want to avoid this, you would have to ship a wrapper shell script that would use a system installed python executable to run the actual Python script - else Splunk will handle it.&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 00:48:27 GMT</pubDate>
    <dc:creator>xpac</dc:creator>
    <dc:date>2018-05-03T00:48:27Z</dc:date>
    <item>
      <title>When I am using a Python scripted input is this the path I should use?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/When-I-am-using-a-Python-scripted-input-is-this-the-path-I/m-p/380709#M6317</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;First time doing a Python scripted input. For portabability should I be using the local Python on Splunk in my scripted input headers? Or the OS's Python install? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/opt/splunk/bin/python

print "hello world"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or should I point to the specific version as well? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/opt/splunk/bin/python2.7

print "hello world"

~                             
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 00:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/When-I-am-using-a-Python-scripted-input-is-this-the-path-I/m-p/380709#M6317</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2018-05-03T00:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: When I am using a Python scripted input is this the path I should use?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/When-I-am-using-a-Python-scripted-input-is-this-the-path-I/m-p/380710#M6318</link>
      <description>&lt;P&gt;Splunk will use it's own python version no matter what you put in your headers.&lt;/P&gt;

&lt;P&gt;If you for some reason (e.g. using Python 3) want to avoid this, you would have to ship a wrapper shell script that would use a system installed python executable to run the actual Python script - else Splunk will handle it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 00:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/When-I-am-using-a-Python-scripted-input-is-this-the-path-I/m-p/380710#M6318</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-03T00:48:27Z</dc:date>
    </item>
  </channel>
</rss>

