title: Cron job not working on URL
body: <p>I'm using WordPress and want to delete unattached media. I have created the script but want to run through Cron job. I have created a page and call the template in page everything is working fine. But when I'm trying the URL in Cron job it is not working.</p>
  
  <pre><code>*/5 * * * * wget -O - http://www.example.com/delete-trashed-products &gt;/dev/null 2&gt;&amp;1
  
  */5 * * * * wget (same link)
  
  */5 * * * * curl (same link)
  
  */5 * * * * GET (same link)
  </code></pre>
  
  <p>I'm unable to add all URLs. I have run these scripts after 5 minutes interval but nothing worked.</p>
  
  <p>Can anybody please help me to figure out the problem?</p>