<?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: Is it Possible to Configure a cronjob with Scripted Input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741616#M117894</link>
    <description>&lt;P&gt;If something "should work" but gives permission denied, the first culprit to check is SELinux &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2025 20:33:08 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2025-03-12T20:33:08Z</dc:date>
    <item>
      <title>Is it Possible to Configure a cronjob with Scripted Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741457#M117873</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bash script that basically creates a cronjob. Not sure if this is allowed or not but I am able to execute it just fine when logged into the splunkfwd account on the UF. However, when ExecProc tries to execute it gives me a permission denied.&amp;nbsp; (The below app is deployed via a Deployment Server)&lt;/P&gt;&lt;P&gt;Sample Script (something simple, trying to get it to work first before i build in my if/then statements)&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;# List the current user's crontab and save output to /tmp/cron_out&lt;BR /&gt;echo "* * * * * testing_this_out" | crontab - &amp;gt; /tmp/cron_out 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inputs.conf&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[script://./bin/install_cron.sh]&lt;BR /&gt;disabled = false&lt;BR /&gt;interval = 10&amp;nbsp; &amp;nbsp;&lt;BR /&gt;sourcetype = cron_upgrader&lt;BR /&gt;index = splunk_upgrade&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;App Structure&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/opt/splunkforwarder/etc/apps/&amp;lt;app_name&amp;gt;/&lt;/P&gt;&lt;P&gt;...........bin &amp;gt; install_cron.sh&amp;nbsp;&lt;/P&gt;&lt;P&gt;...........local &amp;gt; inputs.conf&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure, but I am pretty sure Splunk restricts what can be executed since if I manually execute the script, it works fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 19:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741457#M117873</guid>
      <dc:creator>JoshuaJJ</dc:creator>
      <dc:date>2025-03-11T19:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Possible to Configure a cronjob with Scripted Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741480#M117877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253478"&gt;@JoshuaJJ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure that the file has execute chmod settings so that it can be executed without prepending with "bash" (for example)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chmod +x &amp;lt;yourSHFile)&lt;/LI-CODE&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 22:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741480#M117877</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-11T22:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Possible to Configure a cronjob with Scripted Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741583#M117891</link>
      <description>&lt;P&gt;Good morning, thanks for your reply! File already has execute&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 13:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741583#M117891</guid>
      <dc:creator>JoshuaJJ</dc:creator>
      <dc:date>2025-03-12T13:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Possible to Configure a cronjob with Scripted Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741591#M117892</link>
      <description>&lt;P&gt;Thats odd&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253478"&gt;@JoshuaJJ&lt;/a&gt;&amp;nbsp; - Please can you post the logs that ExecProcessor spits out so I can try and replicate this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 14:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741591#M117892</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-12T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Possible to Configure a cronjob with Scripted Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741616#M117894</link>
      <description>&lt;P&gt;If something "should work" but gives permission denied, the first culprit to check is SELinux &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 20:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-Possible-to-Configure-a-cronjob-with-Scripted-Input/m-p/741616#M117894</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-12T20:33:08Z</dc:date>
    </item>
  </channel>
</rss>

