<?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: Job Scheduler does not run the script in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260198#M9271</link>
    <description>&lt;P&gt;Steps Lesley gave make sense, let us know if they work for you.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 19:03:39 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2025-10-17T19:03:39Z</dc:date>
    <item>
      <title>Job Scheduler does not run the script</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260143#M9269</link>
      <description>&lt;P&gt;Check Point R81.20&amp;nbsp;&lt;BR /&gt;Hello everyone, the script won't run through Job Scheduler, although it works when I run it manually.&amp;nbsp;The script is needed to track the active provider.&amp;nbsp;I am currently testing this script on a test bench.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I gave 755 rights to execute the script.&lt;/P&gt;&lt;P&gt;configuration of Job Scheduler:&lt;BR /&gt;add cron job test command "/home/admin/routewatch.sh" recurrence interval minutes 02&lt;/P&gt;&lt;P&gt;script:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;RFILE="/var/tmp/defroute_prev"&lt;BR /&gt;CURR=$(/sbin/ip route show 0.0.0.0/0)&lt;/P&gt;&lt;P&gt;if [ -f $RFILE ]; then&lt;BR /&gt;DIFF=$(/usr/bin/diff $RFILE &amp;lt;(echo "$CURR"))&lt;BR /&gt;if [ -n "$DIFF" ]; then&lt;BR /&gt;echo "$(/bin/date): Default route changed:" &amp;gt;&amp;gt; /var/log/defroute.log&lt;BR /&gt;echo "$DIFF" &amp;gt;&amp;gt; /var/log/defroute.log&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;echo "$CURR" &amp;gt; $RFILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please tell me why it doesn't work through Job Scheduler and where I can view the cron logs. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 09:14:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260143#M9269</guid>
      <dc:creator>NikolayNikolay</dc:creator>
      <dc:date>2025-10-17T09:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Job Scheduler does not run the script</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260197#M9270</link>
      <description>&lt;P&gt;chmod a+x&amp;nbsp;&lt;SPAN&gt;/home/admin/routewatch.sh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;dos2unix&amp;nbsp;&lt;SPAN&gt;/home/admin/routewatch.sh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;make sure time is set correctly with NPT&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/bin/date&lt;/P&gt;
&lt;P&gt;clish -&amp;gt; show configuration ntp&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 18:55:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260197#M9270</guid>
      <dc:creator>Lesley</dc:creator>
      <dc:date>2025-10-17T18:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Job Scheduler does not run the script</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260198#M9271</link>
      <description>&lt;P&gt;Steps Lesley gave make sense, let us know if they work for you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 19:03:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Job-Scheduler-does-not-run-the-script/m-p/260198#M9271</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-17T19:03:39Z</dc:date>
    </item>
  </channel>
</rss>

