title: How to run cronjob with computer shut off (EC2 instance)
body: <p>I outlined my small project in a different post - to summarize it again quickly, I am trying to do the following: </p>
  
  <ul>
  <li>Write an R script that pulls data from a website</li>
  <li>Schedule the R script to automatically run daily at the same time</li>
  <li>Write / append the R script's output to a database</li>
  </ul>
  
  <p>I am familiar with R web-scraping packages (rvest, rselenium) for doing the first bullet. For the 2nd bullet, just today I learned how to create a crontab to run my script when I desire, however <strong>the crontab does not run the script when my computer is off, or so I've read</strong>. </p>
  
  <p>How can I have it such that the crontab is run even with my computer off? I am somewhat (not really) familiar with EC2 instances, but if I have my R script in an EC2 instance, could I schedule a crontab for the script there and then it would run with my computer off?</p>
  
  <p>Thanks in advance for help!</p>