title: run cron job in octobercms cpanel
body: <p>I must update my currency rate and I have this in my Plugin.php:</p>
  <pre><code>    public function registerSchedule($schedule) {
          $schedule-&gt;call(function () {
              $url = &quot;https://cbu.uz/ru/services/open_data/rates/json/&quot;;
              $json = json_decode(file_get_contents($url), true);
              file_put_contents(&quot;currency.json&quot;, json_encode($json[0]['G4']));            
          })-&gt;everyMinute();
      }
  </code></pre>
  <p>I ran my cron job in cPanel</p>
  <pre><code>/usr/local/bin/ea-php72 /var/www/u1041398/public_html/agroparts.uz/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1 
  </code></pre>
  <p>The path is correct I checked the PHP version it is correct also. My cron codes in plugin.php are correct also but it is not updating the currency rate. Is this command above correct to run cron job? I checked my code without cron and it worked successfully.</p>
  <p><a href="https://i.stack.imgur.com/lVmnv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lVmnv.png" alt="enter image description here" /></a></p>