<?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: What is the difference between '/opt/splunk/bin/python' and '/opt/splunk/bin/splunk cmd python' in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120847#M1746</link>
    <description>&lt;P&gt;Thanks for your answer @Mus !!&lt;/P&gt;

&lt;P&gt;Your answer is a key to some of my major issues.&lt;BR /&gt;
Thanks again&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2015 23:45:46 GMT</pubDate>
    <dc:creator>shrirangphadke</dc:creator>
    <dc:date>2015-07-13T23:45:46Z</dc:date>
    <item>
      <title>What is the difference between '/opt/splunk/bin/python' and '/opt/splunk/bin/splunk cmd python'</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120845#M1744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am having a strange python behavior in my Splunk environment :&lt;/P&gt;

&lt;P&gt;When I run a script with Splunk python as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/python my_script.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it fails. But when I run same script as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk cmd python my_script.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it works. This is really a strange behavior to me.&lt;BR /&gt;
My questions are:&lt;BR /&gt;
 1. Why first option does not work?&lt;BR /&gt;
 2. What can I do to load 'Splunk cmd python' in my django environment.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 23:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120845#M1744</guid>
      <dc:creator>shrirangphadke</dc:creator>
      <dc:date>2015-07-13T23:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between '/opt/splunk/bin/python' and '/opt/splunk/bin/splunk cmd python'</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120846#M1745</link>
      <description>&lt;P&gt;Hi shrirangphadke,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;it does not have the Splunk environment variables set&lt;/LI&gt;
&lt;LI&gt;if you can &lt;CODE&gt;source /opt/splunk/bin/setSplunkEnv&lt;/CODE&gt; in your django enviroment it will run the script as well&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;/opt/splunk/bin/splunk&lt;/CODE&gt; is actually a wrapper which load the &lt;CODE&gt;setSplunkEnv&lt;/CODE&gt; and starts the later command.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 23:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120846#M1745</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-13T23:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between '/opt/splunk/bin/python' and '/opt/splunk/bin/splunk cmd python'</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120847#M1746</link>
      <description>&lt;P&gt;Thanks for your answer @Mus !!&lt;/P&gt;

&lt;P&gt;Your answer is a key to some of my major issues.&lt;BR /&gt;
Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 23:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120847#M1746</guid>
      <dc:creator>shrirangphadke</dc:creator>
      <dc:date>2015-07-13T23:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between '/opt/splunk/bin/python' and '/opt/splunk/bin/splunk cmd python'</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120848#M1747</link>
      <description>&lt;P&gt;you're welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 23:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-difference-between-opt-splunk-bin-python-and-opt/m-p/120848#M1747</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-13T23:46:52Z</dc:date>
    </item>
  </channel>
</rss>

