title: How to schedule a Cronjob so it executes all R scripts in a file
body: <p>I want to schedule a cronjob so it executes every R script I put into a certain directory.</p>
  
  <p>From another post on this site I've seen the following code:</p>
  
  <p><code>0 0 * * * cd /home/script2; Rscript scriptSecos.R &gt;/dev/null 2&gt;&amp;1</code></p>
  
  <p>This would run the RScript <code>scriptSecos.R</code> from the path <code>/home/script2</code>.</p>
  
  <p>What would I need to change in order to run every single script in <code>/home/script2</code>? Should I simply omit the <code>scriptSecos.R</code>?</p>