title: Use cURL to download a file in a cron job
body: <p>I had come across another <a href="https://stackoverflow.com/questions/29739369/mailchimp-needs-140kb-to-be-loaded">post</a> where one guy talked about how he has his web server downloading a JS file from AWS on a routine basis using a cron job.  I haven't created a cron job before, but his routine is exactly what I need to implement.</p>
  
  <p>I found out that my web host doesn't allow wget commands in cron jobs and they recommended that I use cURL instead.  Here's what I've got so far, but it doesn't seem to be working:</p>
  
  <blockquote>
    <p>/usr/bin/curl --user-agent cPanel-Cron
    <a href="https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js" rel="nofollow noreferrer">https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js</a>
    --output wp-content/uploads/libraries/wp-content/uploads/libraries</p>
  </blockquote>
  
  <p>Their documentation states that you need to declare a user agent (doesn't matter what it is) so that's why that's in there.</p>
  
  <p>In a nutshell, I want it to download this file into that specific folder, keep the same file name, and overwrite the one that's already in there.</p>
  
  <p>Am I even close?</p>